OpenXmlElement.InsertBeforeSelf(T) OpenXmlElement.InsertBeforeSelf(T) OpenXmlElement.InsertBeforeSelf(T) Method

Definition

Inserts the specified element immediately before the current element.

public T InsertBeforeSelf<T> (T newElement) where T : DocumentFormat.OpenXml.OpenXmlElement;
member this.InsertBeforeSelf : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Function InsertBeforeSelf(Of T As OpenXmlElement) (newElement As T) As T

Type Parameters

T

Parameters

newElement
T T T

The new element to be inserted as a sibling.

Returns

T T T

The inserted element.

Exceptions

Thrown when the "newElement" parameter is a null reference.

Applies to