OpenXmlWriter.WriteStartElement Method (OpenXmlElement, IEnumerable<OpenXmlAttribute>, IEnumerable<KeyValuePair<String, String>>)
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), _
namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String)) _
)
'Usage
Dim instance As OpenXmlWriter
Dim elementObject As OpenXmlElement
Dim attributes As IEnumerable(Of OpenXmlAttribute)
Dim namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String))
instance.WriteStartElement(elementObject, _
attributes, namespaceDeclarations)
public abstract void WriteStartElement(
OpenXmlElement elementObject,
IEnumerable<OpenXmlAttribute> attributes,
IEnumerable<KeyValuePair<string, string>> namespaceDeclarations
)
Parameters
- elementObject
Type: DocumentFormat.OpenXml.OpenXmlElement
The OpenXmlElement object to be writen.
- attributes
Type: System.Collections.Generic.IEnumerable<OpenXmlAttribute>
The attributes to be writtern.
- namespaceDeclarations
Type: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>
The namespace declarations to be written, can be null if no namespace declarations.