XpsDocumentWriter 类

定义

提供用于写入 XPS 文档或打印队列的方法。Provides methods to write to an XPS document or print queue.

public ref class XpsDocumentWriter : System::Windows::Documents::Serialization::SerializerWriter
public class XpsDocumentWriter : System.Windows.Documents.Serialization.SerializerWriter
type XpsDocumentWriter = class
    inherit SerializerWriter
Public Class XpsDocumentWriter
Inherits SerializerWriter
继承
XpsDocumentWriter

示例

下面的示例演示如何创建 XpsDocumentWriter 类的实例。The following example shows how to create an instance of the XpsDocumentWriter class.


_xpsDocument = new XpsDocument(containerName,FileAccess.ReadWrite);

XpsDocumentWriter xpsdw = XpsDocument.CreateXpsDocumentWriter(_xpsDocument);


_xpsDocument = New XpsDocument(containerName,FileAccess.ReadWrite)

Dim xpsdw As XpsDocumentWriter = XpsDocument.CreateXpsDocumentWriter(_xpsDocument)

注解

XpsDocumentWriter 没有构造函数。XpsDocumentWriter has no constructor. 若要创建 @no__t 0,请使用第 2 @no__t 类的静态 CreateXpsDocumentWriter 方法,或使用 @no__t 类的静态 @no__t 3 方法之一。To create an XpsDocumentWriter, use the static CreateXpsDocumentWriter method of the XpsDocument class or use one of the static CreateXpsDocumentWriter methods of the PrintQueue class. 创建 XpsDocumentWriter 的文档或队列成为它写入的目标。The document or the queue that creates the XpsDocumentWriter becomes the target to which it writes.

方法

CancelAsync()

取消当前 WriteAsync 操作。Cancels the current WriteAsync operation.

CreateVisualsCollator()

返回一个可将 VisualsToXpsDocument 对象写入文档或打印队列中的 VisualReturns a VisualsToXpsDocument that can write Visual objects to a document or print queue.

CreateVisualsCollator(PrintTicket, PrintTicket)

返回一个可将具有 VisualsToXpsDocument 设置的 Visual 对象写入 XPS 文档或打印队列中的 PrintTicketReturns a VisualsToXpsDocument that can write Visual objects with PrintTicket settings to an XPS document or print queue.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
raise_WritingCancelled(Object, WritingCancelledEventArgs)

引发 WritingCancelled 事件。Raises the WritingCancelled event.

raise_WritingCompleted(Object, WritingCompletedEventArgs)

引发 WritingCompleted 事件。Raises the WritingCompleted event.

raise_WritingPrintTicketRequired(Object, WritingPrintTicketRequiredEventArgs)

引发 WritingPrintTicketRequired 事件。Raises the WritingPrintTicketRequired event.

raise_WritingProgressChanged(Object, WritingProgressChangedEventArgs)

引发 WritingProgressChanged 事件。Raises the WritingProgressChanged event.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
Write(DocumentPaginator)

将指定 DocumentPaginator 中的分页内容同步写入目标 XpsDocumentPrintQueueWrites synchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

Write(DocumentPaginator, PrintTicket)

将分页内容从指定的 DocumentPaginatorPrintTicket 同步写入目标 XpsDocumentPrintQueueWrites synchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedDocument)

将指定的 FixedDocument 同步写入到目标 XpsDocumentPrintQueueWrites synchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

Write(FixedDocument, PrintTicket)

FixedDocumentPrintTicket 一起同步写入目标 XpsDocumentPrintQueueWrites synchronously a FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedDocumentSequence)

将指定的 FixedDocumentSequence 同步写入到目标 XpsDocumentPrintQueueWrites synchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

Write(FixedDocumentSequence, PrintTicket)

将指定的 FixedDocumentSequencePrintTicket 一起同步写入目标 XpsDocumentPrintQueueWrites synchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedPage)

将指定的 FixedPage 同步写入到目标 XpsDocumentPrintQueueWrites synchronously a specified FixedPage to the target XpsDocument or PrintQueue.

Write(FixedPage, PrintTicket)

将指定的 FixedPagePrintTicket 一起同步写入目标 XpsDocumentPrintQueueWrites synchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(String)

将指定的 XPS 文档同步写入目标 XpsDocumentPrintQueueSynchronously writes a specified XPS document to the target XpsDocument or PrintQueue.

Write(String, XpsDocumentNotificationLevel)

将指定的 XPSXPS 文档同步写入目标 XpsDocumentPrintQueueWrites synchronously a specified XPSXPS document to the target XpsDocument or PrintQueue.

Write(Visual)

将指定的 Visual 同步写入到目标 XpsDocumentPrintQueueWrites synchronously a specified Visual to the target XpsDocument or PrintQueue.

Write(Visual, PrintTicket)

将指定的 VisualPrintTicket 一起同步写入目标 XpsDocumentPrintQueueWrites synchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator)

将指定 DocumentPaginator 中的分页内容异步写入目标 XpsDocumentPrintQueueWrites asynchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, Object)

将指定 DocumentPaginator 中的分页内容异步写入目标 XpsDocumentPrintQueueWrites asynchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, PrintTicket)

将分页内容从指定的 DocumentPaginatorPrintTicket 异步写入目标 XpsDocumentPrintQueueWrites asynchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, PrintTicket, Object)

将分页内容从指定的 DocumentPaginatorPrintTicket 异步写入目标 XpsDocumentPrintQueueWrites asynchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument)

将指定的 FixedDocument 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, Object)

将指定的 FixedDocument 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, PrintTicket)

将指定的 FixedDocument 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, PrintTicket, Object)

将指定的 FixedDocument 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence)

将指定的 FixedDocumentSequence 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, Object)

将指定的 FixedDocumentSequence 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, PrintTicket)

将指定的 FixedDocumentSequence 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, PrintTicket, Object)

将指定的 FixedDocumentSequence 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage)

将指定的 FixedPage 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedPage to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, Object)

将指定的 FixedPage 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedPage to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, PrintTicket)

将指定的 FixedPage 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, PrintTicket, Object)

将指定的 FixedPage 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(String)

将指定的 XPSXPS 文档异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified XPSXPS document to the target XpsDocument or PrintQueue.

WriteAsync(String, XpsDocumentNotificationLevel)

将带有通知选项的指定的 XPSXPS 文档异步写入目标 XpsDocumentPrintQueue 中。Writes asynchronously a specified XPSXPS document with notification option to the target XpsDocument or PrintQueue.

WriteAsync(Visual)

将指定的 Visual 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified Visual to the target XpsDocument or PrintQueue.

WriteAsync(Visual, Object)

将指定的 Visual 异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified Visual to the target XpsDocument or PrintQueue.

WriteAsync(Visual, PrintTicket)

将指定的 Visual 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(Visual, PrintTicket, Object)

将指定的 Visual 连同 PrintTicket 一起异步写入目标 XpsDocumentPrintQueueWrites asynchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

事件

WritingCancelled

在取消 WriteWriteAsync 操作时发生。Occurs when a Write or WriteAsync operation is canceled.

WritingCompleted

在写操作完成时发生。Occurs when a write operation finishes.

WritingPrintTicketRequired

恰好在 WriteWriteAsync 方法将 PrintTicket 添加至文档或打印队列之前发生。Occurs just before a Write or WriteAsync method adds a PrintTicket to a document or print queue.

WritingProgressChanged

XpsDocumentWriter 更新其进度时发生。Occurs when the XpsDocumentWriter updates its progress.

适用于