PointCollection.InsertAt(UInt32, Point) 方法

定义

在指定的索引处插入指定的项。

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

参数

index
UInt32

unsigned int

uint32_t

要设置值的索引。

value
Point

要设置的值。

实现

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 展开集合并移动所有后续索引项一个。

相比之下, SetAt 替换索引处的项,并且集合计数保持不变。

适用于