PathFigureCollection.Insert(Int32, PathFigure) Metoda

Definicja

Wstawia obiekt PathFigure do określonej lokalizacji w kolekcji.

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)

Parametry

index
Int32

Pozycja indeksu PathFigure , w której jest wstawiona.

value
PathFigure

PathFigure Obiekt do wstawienia w kolekcji.

Implementuje

Wyjątki

value to null.

index nie jest prawidłowym indeksem w obiekcie PathFigureCollection.

Element PathFigureCollection jest tylko do odczytu.

-lub- Element PathFigureCollection ma stały rozmiar.

Uwagi

W przeciwieństwie do typowych implementacji IList<T>.Insertprogramu ta implementacja zgłasza ArgumentException błąd, jeśli próbujesz wstawić odwołanie o wartości null (nic).

Dotyczy

Zobacz też