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 valueelement , określony PathSegmentelement .

value
PathSegment

Element do wstawienia.

Implementuje

Wyjątki

Parametr value ma wartość 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 błąd ArgumentException w przypadku próby wstawienia odwołania o wartości null (nic).

Dotyczy

Zobacz też