FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / CellRangeCollection Class / Add Method / Add(CellRange,Boolean) Method
Object to add to the collection.
Whether to remove overlapping ranges from the collection before adding the new range.

In This Topic
    Add(CellRange,Boolean) Method
    In This Topic
    Adds a new CellRange object to the collection, optionally removing other overlapping ranges from the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal value As CellRange, _
       ByVal clearOverlappingRanges As Boolean _
    ) As Integer

    Parameters

    value
    Object to add to the collection.
    clearOverlappingRanges
    Whether to remove overlapping ranges from the collection before adding the new range.

    Return Value

    The index of the object in the collection.
    See Also