OpenXmlElement.SetAttributes Method
Set a bunch of attributes to the element. If a attribute is a known attribute, the value of the attribute is set. If a attribute is an extended attribute, the 'openxmlAttribute' is added to the extended attributes list.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public Sub SetAttributes ( _
openXmlAttributes As IEnumerable(Of OpenXmlAttribute) _
)
'使用
Dim instance As OpenXmlElement
Dim openXmlAttributes As IEnumerable(Of OpenXmlAttribute)
instance.SetAttributes(openXmlAttributes)
public void SetAttributes(
IEnumerable<OpenXmlAttribute> openXmlAttributes
)
Parameters
- openXmlAttributes
Type: System.Collections.Generic.IEnumerable<OpenXmlAttribute>
The attributes to be set on the element.