OpenXmlWriter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the OpenXmlWriter.
public abstract class OpenXmlWriter : IDisposable
type OpenXmlWriter = class
interface IDisposable
Public MustInherit Class OpenXmlWriter
Implements IDisposable
- Inheritance
-
OpenXmlWriter
- Derived
- Implements
Constructors
OpenXmlWriter() |
Initializes a new instance of the OpenXmlWriter. |
Methods
Close() |
Close the writer. |
Create(OpenXmlPart, Encoding) |
Create an OpenXmlWriter from the OpenXmlPart. |
Create(OpenXmlPart) |
Create an OpenXmlWriter from the OpenXmlPart. |
Create(Stream, Encoding) |
Create an OpenXmlWriter on given stream |
Create(Stream) |
Create an OpenXmlWriter on a given stream. |
Dispose() |
Closes the writer, and releases all resources. |
Dispose(Boolean) |
Closes the reader, and releases all resources. |
ThrowIfObjectDisposed() |
Throw if object is disposed. |
WriteElement(OpenXmlElement) |
Write the OpenXmlElement to the writer. |
WriteEndElement() |
Closes one element. |
WriteStartDocument() |
Writes the XML declaration with the version "1.0". |
WriteStartDocument(Boolean) |
Writes the XML declaration with the version "1.0" and the standalone attribute. |
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(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(OpenXmlElement) |
Writes out a start tag of the element and all the attributes of the element. |
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(OpenXmlReader, IEnumerable<OpenXmlAttribute>) |
Writes out a start element tag of the current element of the OpenXmlReader. And write the attributes in attributes. |
WriteStartElement(OpenXmlReader) |
Writes out a start element tag of the current element of the OpenXmlReader. And write all the attributes of the element. |
WriteString(String) |
When overridden in a derived class, writes the given text content. |