ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid 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
    public int Add( 
       CellRange value,
       bool clearOverlappingRanges
    )

    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