다음을 통해 공유


OpenXmlElement.SetAttributes(IEnumerable<OpenXmlAttribute>) Method

Definition

Sets a number of attributes to the element. If an attribute is a known attribute, the value of the attribute is set. If an attribute is an extended attribute, the 'openxmlAttribute' is added to the extended attributes list.

public void SetAttributes (System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> openXmlAttributes);
member this.SetAttributes : seq<DocumentFormat.OpenXml.OpenXmlAttribute> -> unit
Public Sub SetAttributes (openXmlAttributes As IEnumerable(Of OpenXmlAttribute))

Parameters

openXmlAttributes
IEnumerable<OpenXmlAttribute>

The attributes to be set on the element.

Applies to