Langue

TextElementCollection<TextElementType>.InsertAfter Méthode

Définition

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.

S’applique à