TextElementCollection<TextElementType>.InsertBefore Método

Definición

Inserta un elemento especificado en la colección antes de un elemento de colección especificado.

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)

Parámetros

nextSibling
TextElementType

Elemento en la colección antes del cual se insertará el nuevo elemento.

newItem
TextElementType

Elemento que se va a insertar en la colección.

Excepciones

Se produce cuando newItem ya pertenece a una colección.

Se produce cuando nextSibling o newItem son null.

Se produce cuando nextSibling no pertenece a esta colección.

Se aplica a