Freigeben über


OpenXmlElement.InsertBefore<T>-Methode

Inserts the specified element immediately before the specified reference element.

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

Syntax

'Declaration
Public Overridable Function InsertBefore(Of T As OpenXmlElement) ( _
    newChild As T, _
    refChild As OpenXmlElement _
) As T
'Usage
Dim instance As OpenXmlElement
Dim newChild As T
Dim refChild As OpenXmlElement
Dim returnValue As T

returnValue = instance.InsertBefore(newChild, _
    refChild)
public virtual T InsertBefore<T>(
    T newChild,
    OpenXmlElement refChild
)
where T : OpenXmlElement

Typparameter

  • T

Parameter

  • newChild
    Typ: T
    The OpenXmlElement to insert.

Rückgabewert

Typ: T
The OpenXmlElement being inserted.

Siehe auch

Referenz

OpenXmlElement Klasse

OpenXmlElement-Member

DocumentFormat.OpenXml-Namespace