共用方式為


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

適用於