ListView.TryGetSourceIndex
TryGetSourceIndex(ItemView, out int)
Attempts to retrieve the index into the data source, sourceIndex, represented by the provided in-view listItem.
Declaration
public bool TryGetSourceIndex(ItemView listItem, out int sourceIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| ItemView | listItem | The list item visual reprensenting the object at index |
| int | sourceIndex | The index of the object in the data source |
Returns
| Type | Description |
|---|---|
| bool | true if |