TextElementCollection<TextElementType>.InsertBefore Méthode

Définition

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.

S’applique à