Click or drag to resize

OpenXmlWriter Class

Defines the OpenXmlWriter.
Inheritance Hierarchy
SystemObject
  DocumentFormat.OpenXmlOpenXmlWriter
    DocumentFormat.OpenXmlOpenXmlPartWriter

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public abstract class OpenXmlWriter : IDisposable

The OpenXmlWriter type exposes the following members.

Methods
 NameDescription
Public methodClose Close the writer.
Public methodStatic memberCreate(OpenXmlPart) Create an OpenXmlWriter from the OpenXmlPart.
Public methodStatic memberCreate(Stream) Create an OpenXmlWriter on a given stream.
Public methodStatic memberCreate(OpenXmlPart, Encoding) Create an OpenXmlWriter from the OpenXmlPart.
Public methodStatic memberCreate(Stream, Encoding) Create an OpenXmlWriter on given stream
Public methodDispose Closes the writer, and releases all resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteElement Write the OpenXmlElement to the writer.
Public methodWriteEndElement Closes one element.
Public methodWriteStartDocument Writes the XML declaration with the version "1.0".
Public methodWriteStartDocument(Boolean) Writes the XML declaration with the version "1.0" and the standalone attribute.
Public methodWriteStartElement(OpenXmlElement) Writes out a start tag of the element and all the attributes of the element.
Public methodWriteStartElement(OpenXmlReader) Writes out a start element tag of the current element of the OpenXmlReader. And write all the attributes of the element.
Public methodWriteStartElement(OpenXmlElement, IEnumerableOpenXmlAttribute) Writes out a start tag of the element. And write the attributes in attributes. The attributes of the element will be omitted.
Public methodWriteStartElement(OpenXmlReader, IEnumerableOpenXmlAttribute) Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.
Public methodWriteStartElement(OpenXmlElement, IEnumerableOpenXmlAttribute, IEnumerableKeyValuePairString, String) Writes out a start tag of the element. And write the attributes in attributes. The attributes of the element will be omitted.
Public methodWriteStartElement(OpenXmlReader, IEnumerableOpenXmlAttribute, IEnumerableKeyValuePairString, String) Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.
Public methodWriteString When overridden in a derived class, writes the given text content.
Top
See Also