Vcl.Printers.TPrinter.PrinterIndex
Delphi
property PrinterIndex: Integer read GetPrinterIndex write SetPrinterIndex;
C++
__property int PrinterIndex = {read=GetPrinterIndex, write=SetPrinterIndex, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Printers.pas Vcl.Printers.hpp |
Vcl.Printers | TPrinter |
Description
Specifies which printer listed in the Printers property is the currently selected printer.
The value of PrinterIndex is the currently selected printer. If this value is changed, EndDoc is called automatically. To select the default printer, set the value of PrinterIndex to -1.
The list of installed printers is found in the Printers property. The list of fonts supported by the current printer is found in the Fonts property.