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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

member InsertAfter : 
        previousSibling:'TextElementType *
        newItem:'TextElementType -> unit

Parameters

previousSibling
Type: TextElementType

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

newItem
Type: TextElementType

An item to insert into the collection.

Exception Condition
ArgumentException

Raised when newItem already belongs to a collection.

ArgumentNullException

Raised when previousSibling or newItem is null.

InvalidOperationException

Raised when previousSibling does not belong to this collection.

.NET Framework
Available since 3.0
Return to top
Show: