Share via


OpenXmlElement.Remove Method

Removes this element from its parent.

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

Syntax

'宣言
Public Sub Remove
'使用
Dim instance As OpenXmlElement

instance.Remove()
public void Remove()

Exceptions

Exception Condition
InvalidOperationException

Thrown when the parent is a null reference.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace