次の方法で共有


PrintControllerWithStatusDialog.OnEndPrint メソッド

このメソッドは、.NET Framework インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

ドキュメントを印刷する時点と印刷方法を決定する制御シーケンスを完了します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

構文

'宣言
Public Overrides Sub OnEndPrint ( _
    document As PrintDocument, _
    e As PrintEventArgs _
)
'使用
Dim instance As PrintControllerWithStatusDialog
Dim document As PrintDocument
Dim e As PrintEventArgs

instance.OnEndPrint(document, e)
public override void OnEndPrint (
    PrintDocument document,
    PrintEventArgs e
)
public:
virtual void OnEndPrint (
    PrintDocument^ document, 
    PrintEventArgs^ e
) override
public void OnEndPrint (
    PrintDocument document, 
    PrintEventArgs e
)
public override function OnEndPrint (
    document : PrintDocument, 
    e : PrintEventArgs
)

パラメータ

  • document
    現在印刷中のドキュメントを表す PrintDocument

解説

PrintControllerWithStatusDialog クラスは、カプセル化された PrintControllerPrintController.OnEndPrint メソッドを呼び出します。

OnEndPrint メソッドは、PrintDocumentEndPrint イベントを発生させた直後に呼び出されます。

OnStartPrint メソッドは、プリンタに送信される Graphics オブジェクトを作成します。OnStartPrint が呼び出された後で、OnStartPage メソッドは、Graphics オブジェクトを単一ページのグラフィックに設定します。OnStartPrint を使用すると、ドキュメントを印刷する時点と印刷方法を決定できます。たとえば、印刷を 30 分遅延したり、ドキュメントのプリンタ設定を調整したりできます。また、OnEndPage メソッドが Graphics オブジェクトを消去するのに対し、OnEndPrint はオブジェクトを解放します。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

PrintControllerWithStatusDialog クラス
PrintControllerWithStatusDialog メンバ
System.Windows.Forms 名前空間