XpsDocument.CreateXpsDocumentWriter(XpsDocument) Yöntem

Tanım

yazmak için bir XpsDocumentWriterXpsDocumentoluşturur.

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

Parametreler

xpsDocument
XpsDocument

Yazacak XPS belgesi.

Döndürülenler

XpsDocumentWriter XML Kağıt Belirtimi (XPS) belgesi yazmak için kullanılacak.

Örnekler

Aşağıdaki örnekte, bir yazmak için yönteminin CreateXpsDocumentWriter nasıl kullanılacağı gösterilmektedir XpsDocument.

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

Şunlara uygulanır