OpenXmlElement.Remove method

Office 2013 and later

Removes the current element from its parent.

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

public void Remove()

ExceptionCondition
InvalidOperationException

Thrown when the parent is a null reference.

Show: