語言

XpsDocument.CreateXpsDocumentWriter(XpsDocument) 方法

定義

為 XpsDocumentWriter 寫一個 XpsDocument。

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用於撰寫 XML 紙本規範(XPS)文件。

範例

以下範例展示了如何使用該 CreateXpsDocumentWriter 方法來寫出一個 XpsDocument。

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

適用於