PathSegmentCollection.Insert(Int32, PathSegment) Méthode

Définition

Insère PathSegment dans ce PathSegmentCollection à l'index spécifié.

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)

Paramètres

index
Int32

Index au niveau duquel insérer value, le PathSegment spécifié.

value
PathSegment

Élément à insérer.

Implémente

Exceptions

value a la valeur null.

index n’est pas un index valide dans PathSegmentCollection.

PathSegmentCollection est en lecture seule.

Remarques

Contrairement aux implémentations classiques de IList<T>.Insert, cette implémentation lève une ArgumentException référence si vous tentez d’insérer une référence Null (Nothing).

S’applique à

Voir aussi