Vcl.Dialogs.TPrintDialog.PrintRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property PrintRange: TPrintRange read FPrintRange write FPrintRange default prAllPages;

C++

__property System::Uitypes::TPrintRange PrintRange = {read=FPrintRange, write=FPrintRange, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TPrintDialog

Description

Indicates the type of print range selected in the dialog.

The value of PrintRange corresponds the All, Selection, and Pages (From/To) radio buttons in the Print dialog. To determine which radio button is selected by default when the dialog opens, set the value of PrintRange in the Object Inspector or in program code.

To enable the Pages radio button, set the poPageNums flag in Options. To enable the Selection radio button, set the poSelection flag in Options and set MaxPage to a greater value than MinPage.

See Also


Code Examples