GridList<T>.GetColumnIndex
GetColumnIndex(int)
Get the grid column index of the element at sourceIndex
Declaration
public readonly int GetColumnIndex(int sourceIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | sourceIndex | A 1D index into Source |
Returns
| Type | Description |
|---|---|
| int | The column into the grid 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) |