Method FindItemWithTag
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
valueobjectThe object to compare with each item's
Tagproperty.flagsItemContainerElement<T>.FindItemFlagsThe ItemContainerElement<T>.FindItemFlags that modify the search behavior.
Returns
- T
The first item with a matching
Tag, ornullif no match is found orvalueisnull.
Remarks
Useful for retrieving an item based on externally assigned metadata or identifiers.