FREE TRIAL

|

☀
☾

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 gridIndex in this grid

Exceptions
Type Condition
System.InvalidOperationException

Thrown when the grid hasn't been constructed via CreateWithRows(IList<T>, Int32) or CreateWithColumns(IList<T>, Int32)

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC