OpenXmlElement.InsertAfterSelf<T>-Methode

Inserts the specified element immediately after this element.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Function InsertAfterSelf(Of T As OpenXmlElement) ( _
    newElement As T _
) As T
'Usage
Dim instance As OpenXmlElement
Dim newElement As T
Dim returnValue As T

returnValue = instance.InsertAfterSelf(newElement)
public T InsertAfterSelf<T>(
    T newElement
)
where T : OpenXmlElement

Typparameter

  • T

Parameter

  • newElement
    Typ: T
    The new element to be inserted as a sibling.

Rückgabewert

Typ: T
The inserted element.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

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

InvalidOperationException

Thrown when the parent is a null reference.

Siehe auch

Referenz

OpenXmlElement Klasse

OpenXmlElement-Member

DocumentFormat.OpenXml-Namespace