Table of Contents

Method SafeItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 int

Index 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

Returns

ListControlItem