OpenXmlPartWriter.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 Overrides Sub WriteStartElement ( _
elementReader As OpenXmlReader, _
attributes As IEnumerable(Of OpenXmlAttribute), _
namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String)) _
)
'Usage
Dim instance As OpenXmlPartWriter
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 override 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.