PrintDialog.PrintDocument(DocumentPaginator, String) 方法

定义

DocumentPaginator 对象打印到当前选定的 PrintQueue

public:
 void PrintDocument(System::Windows::Documents::DocumentPaginator ^ documentPaginator, System::String ^ description);
[System.Security.SecurityCritical]
public void PrintDocument (System.Windows.Documents.DocumentPaginator documentPaginator, string description);
public void PrintDocument (System.Windows.Documents.DocumentPaginator documentPaginator, string description);
[<System.Security.SecurityCritical>]
member this.PrintDocument : System.Windows.Documents.DocumentPaginator * string -> unit
member this.PrintDocument : System.Windows.Documents.DocumentPaginator * string -> unit
Public Sub PrintDocument (documentPaginator As DocumentPaginator, description As String)

参数

documentPaginator
DocumentPaginator

要打印的 DocumentPaginator 对象。

description
String

要打印的作业的说明。 此文本显示在打印机的用户界面 (UI) 中。

属性

例外

documentPaginatornull

适用于