Table of Contents

Method FindItemWithTag

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

FindItemWithTag(object?, FindItemFlags)

Searches for an item whose Tag matches the specified value.

public virtual T? FindItemWithTag(object? value, ItemContainerElement<T>.FindItemFlags flags = FindItemFlags.None)

Parameters

value object

The object to compare with each item's Tag property.

flags ItemContainerElement<T>.FindItemFlags

The ItemContainerElement<T>.FindItemFlags that modify the search behavior.

Returns

T

The first item with a matching Tag, or null if no match is found or value is null.

Remarks

Useful for retrieving an item based on externally assigned metadata or identifiers.