TextElementCollection<TextElementType>.InsertAfter Método

Definición

Inserta un elemento especificado en la colección después de un elemento de colección especificado.

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)

Parámetros

previousSibling
TextElementType

Elemento en la colección después 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 previousSibling o newItem son null.

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

Se aplica a