PathFigureCollection.Insert(Int32, PathFigure) 方法

定義

PathFigure 插入集合內的特定位置。

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

參數

index
Int32

插入 PathFigure 的索引位置。

value
PathFigure

要插入集合的 PathFigure 物件。

實作

例外狀況

valuenull

index 不是 PathFigureCollection 中的有效索引。

PathFigureCollection 為唯讀。

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

備註

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

適用於

另請參閱