PathSegmentCollection.Insert(Int32, PathSegment) Metoda

Definice

Vloží PathSegment do tohoto PathSegmentCollection objektu v zadaném indexu.

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

Index, na který se má vložit value, zadaný PathSegment.

value
PathSegment

Položka, kterou chcete vložit.

Implementuje

Výjimky

value je null.

index není platný index v objektu PathSegmentCollection.

Je PathSegmentCollection jen pro čtení.

nebo

PathSegmentCollection pevnou velikost.

Poznámky

Na rozdíl od typických IList<T>.Insertimplementací , tato implementace vyvolá ArgumentException , pokud se pokusíte vložit odkaz null (Nothing).

Platí pro

Viz také