FREE TRIAL

|

☀
☾

GridList<T>.ToGridIndex

ToGridIndex(int)

Convert a 1D index into the underlying list, Source, into a 2D GridIndex for the current grid

Declaration
public readonly GridIndex ToGridIndex(int sourceIndex)
Parameters
Type Name Description
int sourceIndex

The index into the underlying list, Source

Returns
Type Description
GridIndex

The GridIndex into this grid of the element at the sourceIndex of the underlying list

Exceptions
Type Condition
System.InvalidOperationException

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

See Also
ToSourceIndex(GridIndex)
☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC