Share via


UIElementCollection.SetAt(UInt32, UIElement) 方法

定義

將位於指定索引處的值設定為指定的 UIElement 值。

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

參數

index
UInt32

unsigned int

uint32_t

要在其中設定值的索引。

value
UIElement

要設定的值。

實作

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

備註

如果您是使用 C# 或 Microsoft Visual Basic 進行程式設計,請參閱 專案 (索引子)

適用於