OpenXmlWriter.WriteStartElement Method (OpenXmlElement, IEnumerable<OpenXmlAttribute>)
Writes out a start tag of the element. And write the attributes in attributes. The attributes of the element will be omitted.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'宣言
Public MustOverride Sub WriteStartElement ( _
elementObject As OpenXmlElement, _
attributes As IEnumerable(Of OpenXmlAttribute) _
)
'使用
Dim instance As OpenXmlWriter
Dim elementObject As OpenXmlElement
Dim attributes As IEnumerable(Of OpenXmlAttribute)
instance.WriteStartElement(elementObject, _
attributes)
public abstract void WriteStartElement(
OpenXmlElement elementObject,
IEnumerable<OpenXmlAttribute> attributes
)
Parameters
- elementObject
Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement object to be writen.
- attributes
Type: System.Collections.Generic.IEnumerable<OpenXmlAttribute>
The attributes to be writtern.