Share via


OpenXmlWriter Members

Include Protected Members
Include Inherited Members

Defines the OpenXmlWriter.

The OpenXmlWriter type exposes the following members.

Constructors

  Name Description
Protected method OpenXmlWriter Initializes a new instance of the OpenXmlWriter.

Top

Methods

  Name Description
Public method Close Close the writer.
Public methodStatic member Create(Stream) Create an OpenXmlWriter on a given stream.
Public methodStatic member Create(OpenXmlPart) Create an OpenXmlWriter from the OpenXmlPart.
Public methodStatic member Create(Stream, Encoding) Create an OpenXmlWriter on given stream
Public methodStatic member Create(OpenXmlPart, Encoding) Create an OpenXmlWriter from the OpenXmlPart.
Public method Dispose() Closes the writer, and releases all resources.
Protected method Dispose(Boolean) Closes the reader, and releases all resources.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method ThrowIfObjectDisposed Throw if object is disposed.
Public method ToString (Inherited from Object.)
Public method WriteElement Write the OpenXmlElement to the writer.
Public method WriteEndElement Closes one element.
Public method WriteStartDocument() Writes the XML declaration with the version "1.0".
Public method WriteStartDocument(Boolean) Writes the XML declaration with the version "1.0" and the standalone attribute.
Public method WriteStartElement(OpenXmlElement) Writes out a start tag of the element and all the attributes of the element.
Public method WriteStartElement(OpenXmlReader) Writes out a start element tag of the current element of the OpenXmlReader. And write all the attributes of the element.
Public method 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 method WriteStartElement(OpenXmlReader, IEnumerable<OpenXmlAttribute>) Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes.
Public method 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 method 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 method WriteString When overridden in a derived class, writes the given text content.

Top

See Also

Reference

OpenXmlWriter Class

DocumentFormat.OpenXml Namespace