TextElementCollection<TextElementType>.InsertAfter Méthode

Définition

Insère un objet spécifié dans la collection après l'élément de collection indiqué.

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 insérer le nouvel élément.

newItem
TextElementType

Élément à insérer dans la collection.

Exceptions

Levée quand newItem appartient déjà à une collection.

Levée quand previousSibling ou newItem a la valeur null.

Levée quand previousSibling n'appartient pas à cette collection.

S’applique à