TextElementCollection<TextElementType>.InsertBefore Método

Definição

Insere um item especificado na coleção antes de um item específico da coleção.

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

Um item na coleção antes do qual o novo item será inserido.

newItem
TextElementType

Um item para inserir na coleção.

Exceções

Aumentado quando o novoItem já pertence a uma coleção.

Surge quando nextSibling ou newItem está nulo.

Criado quando nextSibling não pertence a esta coleção.

Aplica-se a