Share via


GradientStopCollection.InsertAt(UInt32, GradientStop) 方法

定义

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

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

参数

index
UInt32

unsigned int

uint32_t

要设置值的索引。

value
GradientStop

要设置的值。

实现

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 替换索引处的项,并且集合计数保持不变。

适用于