UIElementCollection.IndexOf method

Applies to Windows and Windows Phone

Retrieves the index of the specified item.

Syntax


public:
bool IndexOf(
  UIElement^ value, 
  [OutAttribute] unsigned int index
)

Parameters

value

Type: UIElement

The value to find in the collection.

index (out parameter)

Type: UInt32

The index of the item to find, if found.

Return value

Type: Boolean

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

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows::UI::Xaml::Controls

Metadata

Windows.winmd

See also

UIElementCollection
UIElement

 

 

Show:
© 2014 Microsoft