TextElementCollection<TextElementType>.InsertBefore Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Insère un élément spécifié dans la collection avant un élément de collection spécifié.
public:
void InsertBefore(TextElementType nextSibling, TextElementType newItem);
public void InsertBefore(TextElementType nextSibling, TextElementType newItem);
member this.InsertBefore : 'extElementType * 'extElementType -> unit
Public Sub InsertBefore (nextSibling As TextElementType, newItem As TextElementType)
Paramètres
- nextSibling
- TextElementType
Élément de la collection avant lequel le nouvel élément sera inséré.
- newItem
- TextElementType
Élément à insérer dans la collection.
Exceptions
Déclenché lorsque newItem appartient déjà à une collection.
Déclenché lorsque nextSibling ou newItem a la valeur Null.
Déclenché lorsque nextSibling n’appartient pas à cette collection.