PathSegmentCollection.Insert(Int32, PathSegment) 方法

定義

在指定的索引位置,將 PathSegment 插入至這個 PathSegmentCollection

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

參數

index
Int32

要插入 value 的索引位置,也就是指定的 PathSegment

value
PathSegment

要插入的項目。

實作

例外狀況

valuenull

index 不是 PathSegmentCollection 中的有效索引。

PathSegmentCollection 為唯讀。

-或- PathSegmentCollection 具有固定的大小。

備註

不同于 的一般實作 IList<T>.Insert ,如果您嘗試插入 Null (Nothing) 參考,這個實作會 ArgumentException 擲回 。

適用於

另請參閱