OpenXmlCompositeElement.PrependChild(T) OpenXmlCompositeElement.PrependChild(T) OpenXmlCompositeElement.PrependChild(T) Method

Definition

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

public override T PrependChild<T> (T newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
override this.PrependChild : 'T -> 'T (requires 'T :> DocumentFormat.OpenXml.OpenXmlElement)
Public Overrides 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 that was added.

Remarks

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

Applies to