Udostępnij za pośrednictwem


OpenXmlElement.AppendChild<T>(T) Method

Definition

Appends the specified element to the end of the current element's list of child nodes.

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

Type Parameters

T

Parameters

newChild
T

The OpenXmlElement element to append.

Returns

T

The OpenXmlElement element that was appended.

Applies to