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
'Declaration
Public MustOverride Sub WriteStartElement ( _
elementObject As OpenXmlElement, _
attributes As IEnumerable(Of OpenXmlAttribute) _
)
'Usage
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.