共用方式為


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;

適用於