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 de la colección antes de la que se insertará el nuevo elemento.

newItem
TextElementType

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

Excepciones

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

Se genera cuando nextSibling o newItem es NULL.

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

Se aplica a