XpsDocument.CreateXpsDocumentWriter(XpsDocument) Metoda

Definice

Vytvoří pro XpsDocumentWriter zápis souboru 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

Parametry

xpsDocument
XpsDocument

Dokument XPS pro zápis.

Návraty

XpsDocumentWriter

Slouží XpsDocumentWriter k zápisu dokumentu XPS (XML Paper Specification).

Příklady

Následující příklad ukazuje, jak použít metodu CreateXpsDocumentWriter k zápisu XpsDocument.

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

Platí pro