共用方式為


GeometryCollection.SetAt(UInt32, Geometry) 方法

定義

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

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

參數

index
UInt32

unsigned int

uint32_t

要設定值的索引。

value
Geometry

要設定的值。

實作

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)

備註

InsertAt 會展開集合,並依一個移動所有後續的索引項目目。

相反地,SetAt 會取代索引上的專案,而集合計數會維持不變。

適用於