XpsDocument.CreateXpsDocumentWriter(XpsDocument) 方法

定义

创建一个用于编写 XpsDocumentWriterXpsDocument

public:
 static System::Windows::Xps::XpsDocumentWriter ^ CreateXpsDocumentWriter(System::Windows::Xps::Packaging::XpsDocument ^ xpsDocument);
public static System.Windows.Xps.XpsDocumentWriter CreateXpsDocumentWriter (System.Windows.Xps.Packaging.XpsDocument xpsDocument);
static member CreateXpsDocumentWriter : System.Windows.Xps.Packaging.XpsDocument -> System.Windows.Xps.XpsDocumentWriter
Public Shared Function CreateXpsDocumentWriter (xpsDocument As XpsDocument) As XpsDocumentWriter

参数

xpsDocument
XpsDocument

要写入的 XPS 文档。

返回

XpsDocumentWriter

用于 XpsDocumentWriter 编写 XML 纸张规范 (XPS) 文档。

示例

下面的示例演示如何使用 CreateXpsDocumentWriter 该方法编写 XpsDocument

// Save as a WordXML document.
WordXmlSerializer.SaveToFile(fileName, flowDocument.ContentStart, flowDocument.ContentEnd);
return true;

适用于