FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / CellRangeCollection Class / Add Method / Add(Int32,Int32,Int32,Int32,Boolean) Method
Top row in the range.
Left column in the range.
Bottom row in the range.
Right column in the range.
Whether to remove overlapping ranges from the collection before adding the new range.

In This Topic
    Add(Int32,Int32,Int32,Int32,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 topRow As Integer, _
       ByVal leftCol As Integer, _
       ByVal bottomRow As Integer, _
       ByVal rightCol As Integer, _
       ByVal clearOverlappingRanges As Boolean _
    ) As Integer

    Parameters

    topRow
    Top row in the range.
    leftCol
    Left column in the range.
    bottomRow
    Bottom row in the range.
    rightCol
    Right column in the range.
    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