Partager via


OpenXmlElement.PrependChild<T> Method

Adds the specified element to the beginning of the list of child nodes for this element.

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

Syntax

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

returnValue = instance.PrependChild(newChild)
public virtual T PrependChild<T>(
    T newChild
)
where T : OpenXmlElement

Type Parameters

  • T

Parameters

  • newChild
    Type: T
    The OpenXmlElement to add.

Return Value

Type: T
The OpenXmlElement added.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace