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

Definition

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

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)

Parameters

nextSibling
TextElementType TextElementType TextElementType TextElementType

An item in the collection before 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.

Applies to