UIElementWeakCollection.InsertAt(UInt32, UIElement) Method

Definition

Inserts the specified item at the specified index.

C#
public void InsertAt(uint index, UIElement value);

Parameters

index
UInt32

The zero-based index at which to insert the item.

value
UIElement

The object to insert into the collection.

Implements

M:Windows.Foundation.Collections.IVector1.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.

Applies to

Proizvod Verzije
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6