VectorCollection.Insert(Int32, Vector) 方法

定义

Vector 插入到 VectorCollection 中的指定索引位置处。Inserts a Vector into the VectorCollection at the specified index.

public:
 virtual void Insert(int index, System::Windows::Vector value);
public void Insert (int index, System.Windows.Vector value);
abstract member Insert : int * System.Windows.Vector -> unit
override this.Insert : int * System.Windows.Vector -> unit
Public Sub Insert (index As Integer, value As Vector)

参数

index
Int32

应插入 value 的从零开始的索引。The zero-based index at which value should be inserted.

value
Vector

要插入到 VectorCollectionVectorThe Vector to insert into the VectorCollection.

实现

异常

valuenullvalue is null.

index 不是 VectorCollection 中的有效索引。index is not a valid index in the VectorCollection.

VectorCollection 为只读。The VectorCollection is read-only.

-or- VectorCollection 具有固定的大小。The VectorCollection has a fixed size.

注解

与的IList<T>.Insert典型实现不同, 如果尝试插入ArgumentException null (Nothing) 引用, 此实现将引发。Unlike typical implementations of IList<T>.Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.

适用于

另请参阅