共用方式為


OpenXmlPartWriter Class

Definition

Defines the OpenXmlPartWriter.

public class OpenXmlPartWriter : DocumentFormat.OpenXml.OpenXmlWriter
type OpenXmlPartWriter = class
    inherit OpenXmlWriter
Public Class OpenXmlPartWriter
Inherits OpenXmlWriter
Inheritance
OpenXmlPartWriter

Constructors

OpenXmlPartWriter(OpenXmlPart, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(OpenXmlPart)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(Stream, Encoding)

Initializes a new instance of the OpenXmlPartWriter.

OpenXmlPartWriter(Stream)

Initializes a new instance of the OpenXmlPartWriter.

Methods

Close()

Close the writer.

Dispose()

Closes the writer, and releases all resources.

(Inherited from OpenXmlWriter)
Dispose(Boolean)

Closes the reader, and releases all resources.

(Inherited from OpenXmlWriter)
ThrowIfObjectDisposed()

Throw if object is disposed.

(Inherited from OpenXmlWriter)
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)

Writes the given text content.

Applies to