OpenXmlCompositeElement.RemoveChild<T> Method (T)

Removes specified child element.

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


Public Overrides Function RemoveChild(Of T As OpenXmlElement) ( _
    oldChild As T _
) As T
Dim instance As OpenXmlCompositeElement
Dim oldChild As T
Dim returnValue As T

returnValue = instance.RemoveChild(oldChild)
public override T RemoveChild<T>(
    T oldChild
where T : OpenXmlElement

Type Parameters

  • T


  • oldChild
    Type: T
    The element being removed.

Return Value

Type: T
The element removed.


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

See Also


OpenXmlCompositeElement Class

OpenXmlCompositeElement Members

RemoveChild Overload

DocumentFormat.OpenXml Namespace