Export (0) Print
Expand All

OpenXmlElement.PrependChild<T> method

Inserts the specified element at the beginning of the current element's list of child elements.

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

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 element that was added.
Show:
© 2015 Microsoft