Share via


OpenXmlElement.InsertAfterSelf Generic Method

Inserts the specified element immediately after this element.

Espace de noms : DocumentFormat.OpenXml
Assembly : DocumentFormat.OpenXml (dans documentformat.openxml.dll)

Syntaxe

'Déclaration
Public Function InsertAfterSelf(Of T As OpenXmlElement) ( _
    newElement As T _
) As T
'Utilisation
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

Type Parameters

Paramètres

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

Valeur de retour

The inserted element.

Exceptions

Type d’exception Condition

ArgumentNullException

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

InvalidOperationException

Thrown when the parent is a null reference.

Voir aussi

Référence

OpenXmlElement, classe
Membres OpenXmlElement
DocumentFormat.OpenXml, espace de noms