Share via


UIElementCollection.RemoveAt(UInt32) 方法

定義

移除指定之索引處的項目。

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

參數

index
UInt32

unsigned int

uint32_t

要移除的項目索引位置。

實作

M:Windows.Foundation.Collections.IVector`1.RemoveAt(System.UInt32) M:Windows.Foundation.Collections.IVector`1.RemoveAt(unsigned int) M:Windows.Foundation.Collections.IVector`1.RemoveAt(uint32_t)

備註

如果成功,呼叫這個方法會減少集合大小。 索引值大於所呼叫索引的專案,其索引值會減少一個。

如果您是使用 C# 或 Microsoft Visual Basic 進行程式設計,請參閱 RemoveAt。 每個語言 RemoveAt 的行為基本上都相同。

適用於

另請參閱