OpenXmlElement.RemoveChild<T> Method

Removes specified child element.

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

Syntax

'Declaration
Public Overridable Function RemoveChild(Of T As OpenXmlElement) ( _
    oldChild As T _
) As T
'Usage
Dim instance As OpenXmlElement
Dim oldChild As T
Dim returnValue As T

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

Type Parameters

  • T

Parameters

  • oldChild
    Type: T
    The element being removed.

Return Value

Type: T
The element removed.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace