Поделиться через


OpenXmlCompositeElement.AppendChild<T> Method (T)

Adds the specified element to the end of the list of child nodes, of this element.

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

Syntax

'Declaration
Public Overrides Function AppendChild(Of T As OpenXmlElement) ( _
    newChild As T _
) As T
'Usage
Dim instance As OpenXmlCompositeElement
Dim newChild As T
Dim returnValue As T

returnValue = instance.AppendChild(newChild)
public override T AppendChild<T>(
    T newChild
)
where T : OpenXmlElement

Type Parameters

  • T

Parameters

  • newChild
    Type: T
    The OpenXmlElement to append.

Return Value

Type: T
The OpenXmlElement being appended.

Remarks

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

See Also

Reference

OpenXmlCompositeElement Class

OpenXmlCompositeElement Members

AppendChild Overload

DocumentFormat.OpenXml Namespace