DependencyObjectCollection.IndexOf(DependencyObject, UInt32) DependencyObjectCollection.IndexOf(DependencyObject, UInt32) DependencyObjectCollection.IndexOf(DependencyObject, UInt32) DependencyObjectCollection.IndexOf(DependencyObject, UInt32) Method

Definition

Retrieves the index of the specified item.

public : Platform::Boolean IndexOf(DependencyObject value, unsigned int index)
bool IndexOf(DependencyObject value, uint32_t const& index) const;
public bool IndexOf(DependencyObject value, UInt32 index)
Public Function IndexOf(value As DependencyObject, index As UInt32) As bool

Parameters

value
DependencyObject DependencyObject

The value to find in the collection.

index
UInt32 UInt32

The index of the item to find, if found.

Returns

bool bool

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

Remarks

Note

The equivalent Microsoft .NET API is IndexOf, or Contains if you want a Boolean return value that indicates that the value exists.