[]
        
(Showing Draft Content)

C1.Win.FlexGrid.CellRangeCollection.IndexOf

IndexOf Method

IndexOf(CellRange)

Gets the index of a CellRange object in the collection.

Declaration
public int IndexOf(CellRange item)
Parameters
Type Name Description
CellRange item

Object to locate in the collection.

Returns
Type Description
int

The index of the object in the collection, or -1 if the object is not a member of the collection.

IndexOf(int, int)

Gets the index of the first CellRange object in the collection that contains the specified row and column.

Declaration
public int IndexOf(int row, int col)
Parameters
Type Name Description
int row

Index of the row contained in the range.

int col

Index of the column contained in the range.

Returns
Type Description
int

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