UIElementCollection.InsertAt(UInt32, UIElement) メソッド

定義

指定したインデックス位置に指定した項目を挿入します。

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

パラメーター

index
UInt32

unsigned int

uint32_t

値を設定する位置のインデックス。

value
UIElement

設定する値。

実装

M:Windows.Foundation.Collections.IVector1.InsertAt(System.UInt32,0) M:Windows.Foundation.Collections.IVector1.InsertAt(unsigned int,0) M:Windows.Foundation.Collections.IVector1.InsertAt(uint32_t,0)

注釈

InsertAt はコレクションを展開し、後続のすべてのインデックス項目を 1 つずつ移動します。 これに対し、 SetAt は インデックスの項目を置き換え、コレクション数は変わりません。

C# または Microsoft Visual Basic を使用してプログラミングする場合は、「 挿入」を参照してください。

適用対象