ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / CellRangeCollection Class / IndexOf Method / IndexOf(Int32,Int32) Method
Index of the row contained in the range.
Index of the column contained in the range.

In This Topic
    IndexOf(Int32,Int32) Method
    In This Topic
    Gets the index of the first CellRange object in the collection that contains the specified row and column.
    Syntax
    'Declaration
     
    Public Overloads Function IndexOf( _
       ByVal row As Integer, _
       ByVal col As Integer _
    ) As Integer
    public int IndexOf( 
       int row,
       int col
    )

    Parameters

    row
    Index of the row contained in the range.
    col
    Index of the column contained in the range.

    Return Value

    The index of the object in the collection, or -1 if no range could be found containing the specified row and column.
    See Also