OpenXmlElement.GetAttributes method

Office 2013 and later

Gets a list that contains a copy of all the attributes.

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

public IList<OpenXmlAttribute> GetAttributes()

Return value

Type: System.Collections.Generic.IList<OpenXmlAttribute>
A list of attributes. Return an empty list if there are no attributes.

The returned list is a copy, non-live.

Show: