Table of Contents

Method ItemByName

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

ItemByName(string)

Retrieves an item from the collection by its name.

public virtual T? ItemByName(string name)

Parameters

name string

The name of the item to retrieve. This value is case-sensitive.

Returns

T

The item of type T if an item with the specified name exists in the collection; otherwise, null.

Remarks

This method performs a linear search through the Items collection. If multiple items share the same name, the first matching item is returned. If the collection is empty, the method returns null.