语言

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 (ArgumentException) 引用,则此实现将引发此实现。

适用于

另请参阅