OpenXmlWriter.WriteStartElement-Methode (OpenXmlReader, IEnumerable<OpenXmlAttribute>, IEnumerable<KeyValuePair<String, String>>)
Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public MustOverride Sub WriteStartElement ( _
elementReader As OpenXmlReader, _
attributes As IEnumerable(Of OpenXmlAttribute), _
namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String)) _
)
'Usage
Dim instance As OpenXmlWriter
Dim elementReader As OpenXmlReader
Dim attributes As IEnumerable(Of OpenXmlAttribute)
Dim namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String))
instance.WriteStartElement(elementReader, _
attributes, namespaceDeclarations)
public abstract void WriteStartElement(
OpenXmlReader elementReader,
IEnumerable<OpenXmlAttribute> attributes,
IEnumerable<KeyValuePair<string, string>> namespaceDeclarations
)
Parameter
- elementReader
Typ: DocumentFormat.OpenXml.OpenXmlReader
The OpenXmlReader to read from.
- attributes
Typ: System.Collections.Generic.IEnumerable<OpenXmlAttribute>
The attributes to be writtern, can be null if no attrbutes.
- namespaceDeclarations
Typ: System.Collections.Generic.IEnumerable<KeyValuePair<String, String>>
The namespace declarations to be written, can be null if no namespace declarations.