UIElementCollection.IndexOf(UIElement, UInt32) Method

Definition

Retrieves the index of the specified item.

bool IndexOf(UIElement const & value, [Out] uint32_t & index);
public bool IndexOf(UIElement value, out uint index);
Public Function IndexOf (value As UIElement, ByRef index As UInteger) As Boolean

Parameters

value
UIElement

The value to find in the collection.

index
UInt32

The index of the item to find, if found.

Returns

Boolean

true if an item with the specified value was found; otherwise, false.

Implements

Windows.Foundation.Collections.IVector`1.IndexOf(`0,System.UInt32@)

Remarks

If you are programming using C# or Microsoft Visual Basic, see IndexOf.

Applies to

See also