OpenXmlElement.SetAttributes(IEnumerable<OpenXmlAttribute>) 方法

定义

设置元素的多个属性。 如果属性是已知属性,则会设置该特性的值。 如果属性是扩展属性,则会将“openxmlAttribute”添加到扩展属性列表中。

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))

参数

openXmlAttributes
IEnumerable<OpenXmlAttribute>

要对 元素设置的属性。

适用于