DependencyObjectCollection.InsertAt(UInt32, DependencyObject) Method

Definition

Inserts the specified item at the specified index.

public:
 virtual void InsertAt(unsigned int index, DependencyObject ^ value) = IVector<DependencyObject ^>::InsertAt;
void InsertAt(uint32_t index, DependencyObject const & value);
public void InsertAt(uint index, DependencyObject value);
Public Sub InsertAt (index As UInteger, value As DependencyObject)

Parameters

index
UInt32

The index at which to set the value.

value
DependencyObject

The value to set.

Implements

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

Remarks

InsertAt expands the collection and moves all subsequent index items by one. In contrast, SetAt replaces the item at the index, and the collection count remains the same.

Note

The equivalent Microsoft .NET API is Insert.

Applies to