次の方法で共有


OpenXmlElement.RemoveAttribute Method

Remove the attribute from the element.

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

Syntax

'宣言
Public Sub RemoveAttribute ( _
    localName As String, _
    namespaceUri As String _
)
'使用
Dim instance As OpenXmlElement
Dim localName As String
Dim namespaceUri As String

instance.RemoveAttribute(localName, namespaceUri)
public void RemoveAttribute(
    string localName,
    string namespaceUri
)

Parameters

  • namespaceUri
    Type: System.String
    The namesapce URI of the attribute.

Exceptions

Exception Condition
ArgumentOutOfRangeException

Thrown when the localName is empty.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace