TextElementCollection<TextElementType>.InsertAfter Metoda

Definicja

Wstawia określony element w kolekcji po określonym elemencie kolekcji.

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)

Parametry

previousSibling
TextElementType

Element w kolekcji, po którym zostanie wstawiony nowy element.

newItem
TextElementType

Element do wstawienia do kolekcji.

Wyjątki

Podniesione, gdy element newItem już należy do kolekcji.

Podniesione, gdy parametr previousSibling lub newItem ma wartość null.

Podniesione, gdy funkcja previousSibling nie należy do tej kolekcji.

Dotyczy