OpenXmlElement.PrependChild(T) OpenXmlElement.PrependChild(T) OpenXmlElement.PrependChild(T) Method

Definition

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

public virtual T PrependChild<T> (T newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
abstract member PrependChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
override this.PrependChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overridable Function PrependChild(Of T As OpenXmlElement) (newChild As T) As T

Type Parameters

T

Parameters

newChild
T T T

The OpenXmlElement to add.

Returns

T T T

The OpenXmlElement element that was added.

Applies to