Vcl.Printers.TPrinter.PrinterIndex

提供: RAD Studio API Documentation
移動先: 案内検索

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 プロパティで見つかります。

関連項目