PathSegmentCollection.Insert(Int32, PathSegment) Metoda

Definicja

Wstawia element PathSegment do tego PathSegmentCollection w określonym indeksie.

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)

Parametry

index
Int32

Indeks, w którym ma być wstawiony value, określony PathSegmentelement .

value
PathSegment

Element do wstawienia.

Implementuje

Wyjątki

value to null.

index nie jest prawidłowym indeksem w obiekcie PathSegmentCollection.

Element PathSegmentCollection jest tylko do odczytu.

-lub- Element PathSegmentCollection 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ż