Vcl.Printers.TPrinter.PrinterIndex
Delphi
property PrinterIndex: Integer read GetPrinterIndex write SetPrinterIndex;
C++
__property int PrinterIndex = {read=GetPrinterIndex, write=SetPrinterIndex, nodefault};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | public | Vcl.Printers.pas Vcl.Printers.hpp |
Vcl.Printers | TPrinter |
説明
Printers プロパティのリストにあるプリンタから現在のプリンタを指定します。
PrinterIndex プロパティの値は現在選択されているプリンタです。この値が変更されると,EndDoc メソッドが自動的に呼び出されます。デフォルトのプリンタを選択するには,PrinterIndex プロパティの値を -1 に設定します。
インストールされているプリンタのリストは Printers プロパティで見つかります。現在のプリンタのサポートするフォントのリストは Fonts プロパティで見つかります。