TextElementCollection<TextElementType>.InsertAfter 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 après un élément de collection spécifié.
public:
void InsertAfter(TextElementType previousSibling, TextElementType newItem);
public void InsertAfter(TextElementType previousSibling, TextElementType newItem);
member this.InsertAfter : 'extElementType * 'extElementType -> unit
Public Sub InsertAfter (previousSibling As TextElementType, newItem As TextElementType)
Paramètres
- previousSibling
- TextElementType
Élément de la collection après 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 previousSibling ou newItem a la valeur Null.
Déclenché lorsque previousSibling n’appartient pas à cette collection.