다음을 통해 공유


OpenXmlElement.PrependChild<T>(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;
public virtual T PrependChild<T> (T? newChild) where T : DocumentFormat.OpenXml.OpenXmlElement;
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

The OpenXmlElement element to add.

Returns

T

The OpenXmlElement element that was added.

Applies to