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
indexintIndex of the item.
Returns
- T
Type Parameters
TType 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
indexint