GridList<T>.ToSourceIndex
ToSourceIndex(GridIndex)
Convert a 2D gridIndex
into the current grid into a 1D index into Source
Declaration
public readonly int ToSourceIndex(GridIndex gridIndex)
Parameters
Type | Name | Description |
---|---|---|
GridIndex | gridIndex | The index into the current grid |
Returns
Type | Description |
---|---|
int | The 1D index in the underlying list of the element at |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the grid hasn't been constructed via CreateWithRows(IList<T>, Int32) or CreateWithColumns(IList<T>, Int32) |