語言

PathFigureCollection.Insert(Int32, PathFigure) 方法

定義

將 a 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要插入到集合中的物件。

實作

例外狀況

value 是 null。

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

這是 PathFigureCollection 唯讀的。

-或-

它 PathFigureCollection 有固定尺寸。

備註

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

適用於

另請參閱