Method SafeItem
SafeItem<T>(int)
Gets item with the specified index. If index of the item is invalid, returns null.
public virtual T? SafeItem<T>(int index) where T : class
Parameters
index
intIndex of the item.
Returns
- T
Type Parameters
T
Type of the result.
SafeItem(int)
Gets ListControlItem item with the specified index.
If index of the item is invalid or item is not ListControlItem,
returns null
.
public ListControlItem? SafeItem(int index)
Parameters
index
int