Share via


OpenXmlPartWriter.WriteStartElement Method

Definition

Overloads

WriteStartElement(OpenXmlElement)

Writes out a start tag of the element and all the attributes of the element.

WriteStartElement(OpenXmlReader)

Writes out a start element tag of the current element of the OpenXmlReader. And write all the attributes of the element.

WriteStartElement(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.

WriteStartElement(OpenXmlReader, IEnumerable<OpenXmlAttribute>)

Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.

WriteStartElement(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.

WriteStartElement(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.

WriteStartElement(OpenXmlElement)

Writes out a start tag of the element and all the attributes of the element.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlElement elementObject);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement -> unit
Public Overrides Sub WriteStartElement (elementObject As OpenXmlElement)

Parameters

elementObject
OpenXmlElement

The OpenXmlElement object to be written.

Applies to

WriteStartElement(OpenXmlReader)

Writes out a start element tag of the current element of the OpenXmlReader. And write all the attributes of the element.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlReader elementReader);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader -> unit
Public Overrides Sub WriteStartElement (elementReader As OpenXmlReader)

Parameters

elementReader
OpenXmlReader

The OpenXmlReader to read from.

Applies to

WriteStartElement(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.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlElement elementObject, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement * seq<DocumentFormat.OpenXml.OpenXmlAttribute> -> unit
Public Overrides Sub WriteStartElement (elementObject As OpenXmlElement, attributes As IEnumerable(Of OpenXmlAttribute))

Parameters

elementObject
OpenXmlElement

The OpenXmlElement object to be written.

attributes
IEnumerable<OpenXmlAttribute>

The attributes to be written.

Applies to

WriteStartElement(OpenXmlReader, IEnumerable<OpenXmlAttribute>)

Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlReader elementReader, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader * seq<DocumentFormat.OpenXml.OpenXmlAttribute> -> unit
Public Overrides Sub WriteStartElement (elementReader As OpenXmlReader, attributes As IEnumerable(Of OpenXmlAttribute))

Parameters

elementReader
OpenXmlReader

The OpenXmlReader to read from.

attributes
IEnumerable<OpenXmlAttribute>

The attributes to be written, can be null if no attributes.

Applies to

WriteStartElement(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.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlElement elementObject, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> namespaceDeclarations);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement * seq<DocumentFormat.OpenXml.OpenXmlAttribute> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public Overrides Sub WriteStartElement (elementObject As OpenXmlElement, attributes As IEnumerable(Of OpenXmlAttribute), namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String)))

Parameters

elementObject
OpenXmlElement

The OpenXmlElement object to be written.

attributes
IEnumerable<OpenXmlAttribute>

The attributes to be written.

namespaceDeclarations
IEnumerable<KeyValuePair<String,String>>

The namespace declarations to be written, can be null if no namespace declarations.

Applies to

WriteStartElement(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.

public override void WriteStartElement (DocumentFormat.OpenXml.OpenXmlReader elementReader, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> namespaceDeclarations);
override this.WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader * seq<DocumentFormat.OpenXml.OpenXmlAttribute> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public Overrides Sub WriteStartElement (elementReader As OpenXmlReader, attributes As IEnumerable(Of OpenXmlAttribute), namespaceDeclarations As IEnumerable(Of KeyValuePair(Of String, String)))

Parameters

elementReader
OpenXmlReader

The OpenXmlReader to read from.

attributes
IEnumerable<OpenXmlAttribute>

The attributes to be written, can be null if no attributes.

namespaceDeclarations
IEnumerable<KeyValuePair<String,String>>

The namespace declarations to be written, can be null if no namespace declarations.

Applies to