OpenXmlCompositeElement.PrependChild<T> Method (T)

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)


Public Overrides Function PrependChild(Of T As OpenXmlElement) ( _
    newChild As T _
) As T
Dim instance As OpenXmlCompositeElement
Dim newChild As T
Dim returnValue As T

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

Type Parameters

  • T


  • newChild
    Type: T
    The OpenXmlElement to add.

Return Value

Type: T
The OpenXmlElement added.


No change if the (newChild == null). Just return null.

See Also


OpenXmlCompositeElement Class

OpenXmlCompositeElement Members

PrependChild Overload

DocumentFormat.OpenXml Namespace