[Overview][Types][Classes][Variables][Index] Reference for unit 'Printers' (#lcl)

TPrinter.DoGetOrientation

Performs actions needed to get the page orientation for the print device.

Declaration

Source position: printers.pas line 282

protected function TPrinter.DoGetOrientation: TPrinterOrientation; virtual;

Function result

TPrinterOrientation value for the page orientation.

Description

DoGetOrientation is a virtual TPrinterOrientation function used to perform actions needed to get the page orientation for the print device. DoGetOrientation is called when the value for the Orientation property is retrieved, and provides the value used in the property.

Remark: In TPrinter, DoGetOrientation always returns the value poPortrait. It must be overridden in a descendent class to perform the actions needed for the operating system / widgetset / printer-related technology used in the implementation.

See also

TPrinter.Orientation

  

Orientation for the page on the paper.


Version 3.2 Generated 2024-02-25 Home