次の方法で共有


PrintDialog コンストラクタ

PrintDialog クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New
'使用
Dim instance As New PrintDialog
public PrintDialog ()
public:
PrintDialog ()
public PrintDialog ()
public function PrintDialog ()

解説

PrintDialog のインスタンスを作成すると、次の読み書き可能プロパティが初期値に設定されます。

プロパティ

初期値

AllowSomePages

false

AllowPrintToFile

true

AllowSelection

false

Document

null 参照 (Visual Basic では Nothing)

PrinterSettings

null 参照 (Visual Basic では Nothing)

PrintToFile

false

ShowHelp

false

ShowNetwork

true

これらのプロパティの値は、各プロパティを個別に呼び出して変更できます。

プラットフォーム

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

参照

関連項目

PrintDialog クラス
PrintDialog メンバ
System.Windows.Forms 名前空間
PrintDocument
PrinterSettings
CommonDialog クラス