Sign in Join
FPDoc Onlineexperiment

TPrinter.DoGetOrientation function

Member of TPrinterprotectedIn unit Printers

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

Declaration

pascal
function 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.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.