PathFigureCollection.Add(PathFigure) Méthode
Définition
Ajoute un PathFigure à la fin de la collection.Adds a PathFigure to the end of the collection.
public:
virtual void Add(System::Windows::Media::PathFigure ^ value);
public void Add (System.Windows.Media.PathFigure value);
abstract member Add : System.Windows.Media.PathFigure -> unit
override this.Add : System.Windows.Media.PathFigure -> unit
Public Sub Add (value As PathFigure)
Paramètres
- value
- PathFigure
Objet PathFigure à ajouter à la collection.The PathFigure to add to the collection.
Implémente
Exceptions
value
a la valeur null
.value
is null
.
PathFigureCollection est en lecture seule.The PathFigureCollection is read-only.
- ou --or- PathFigureCollection est de taille fixe.The PathFigureCollection has a fixed size.
Remarques
Étant donné que les PathFigure objets dérivent de Freezable , ils sont copiés lorsqu’ils sont utilisés.Because PathFigure objects derive from Freezable, they are copied when they are used. Par conséquent, vous risquez de ne pas pouvoir récupérer ou supprimer le PathFigure que vous avez ajouté à la collection à l’aide de l’objet d’origine PathFigure .Therefore, later, you might not be able to retrieve or remove the PathFigure you added to the collection using the original PathFigure object. Le PathFigure de la collection est une copie de l’original PathFigure et est considéré comme différent de celui PathFigure que vous avez ajouté.The PathFigure in the collection is a copy of the original PathFigure and is considered a different PathFigure than the one you added.
Cette implémentation lève une exception ArgumentException si vous tentez d’ajouter une référence null (Nothing).This implementation throws an ArgumentException if you attempt to add a null (Nothing) reference.