語言

VectorCollection.Insert(Int32, Vector) 方法

定義

在指定的索引處插入 a VectorVectorCollection 。

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 。

value
Vector

將 Vector 插入 VectorCollection.

實作

例外狀況

value 是 null。

index 在 中 不是有效的索引 VectorCollection。

這是 VectorCollection 唯讀的。

-或-

它 VectorCollection 有固定尺寸。

備註

與典型的 實IList<T>.Insert作不同,這個實作會在你嘗試插入ArgumentExceptionNothing)參考時拋出 。

適用於

另請參閱