TextElementCollection<TextElementType>.InsertAfter(TextElementType, TextElementType) TextElementCollection<TextElementType>.InsertAfter(TextElementType, TextElementType) TextElementCollection<TextElementType>.InsertAfter(TextElementType, TextElementType) TextElementCollection<TextElementType>.InsertAfter(TextElementType, TextElementType) Method

Definition

Inserts a specified item in the collection after a specified collection item.

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)

Parameters

previousSibling
TextElementType TextElementType TextElementType TextElementType

An item in the collection after which the new item will be inserted.

newItem
TextElementType TextElementType TextElementType TextElementType

An item to insert into the collection.

Exceptions

Raised when newItem already belongs to a collection.

Raised when previousSibling does not belong to this collection.

Applies to