OpenXmlElement.RemoveAttribute method

Office 2013 and later

Removes the attribute from the current element.

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

public void RemoveAttribute(
	string localName,
	string namespaceUri
)

Parameters

localName
Type: System.String

The local name of the attribute.

namespaceUri
Type: System.String

The namesapce URI of the attribute.

ExceptionCondition
ArgumentOutOfRangeException

Thrown when the localName is empty.

Show: