다음을 통해 공유


OpenXmlWriter.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 abstract void WriteStartElement (DocumentFormat.OpenXml.OpenXmlElement elementObject);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement -> unit
Public MustOverride 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 abstract void WriteStartElement (DocumentFormat.OpenXml.OpenXmlReader elementReader);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader -> unit
Public MustOverride 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 abstract void WriteStartElement (DocumentFormat.OpenXml.OpenXmlElement elementObject, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement * seq<DocumentFormat.OpenXml.OpenXmlAttribute> -> unit
Public MustOverride 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 abstract void WriteStartElement (DocumentFormat.OpenXml.OpenXmlReader elementReader, System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlAttribute> attributes);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader * seq<DocumentFormat.OpenXml.OpenXmlAttribute> -> unit
Public MustOverride 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 abstract 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);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlElement * seq<DocumentFormat.OpenXml.OpenXmlAttribute> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public MustOverride 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 abstract 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);
abstract member WriteStartElement : DocumentFormat.OpenXml.OpenXmlReader * seq<DocumentFormat.OpenXml.OpenXmlAttribute> * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public MustOverride 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