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

TPrinter.Orientation

Orientation for the page on the paper.

Declaration

Source position: printers.pas line 326

public property TPrinter.Orientation : TPrinterOrientation
  read GetOrientation
  write SetOrientation;

Description

Orientation is a TPrinterOrientation property which indicates the orientation for the page content on its paper. For example:

poPortrait
Long edge of the canvas is oriented to the vertical axis.
poReversePortrait
Long edge of the canvas is oriented to the vertical axis with coordinates rotated 180 degrees. This is often referred to as "Mirror Printing".
poLandscape
Long edge of the canvas is oriented to the horizontal axis.
poReverseLandscape
Long edge of the canvas is oriented to the horizontal axis with coordinates rotated 180 degrees. This is often referred to as "Mirror Printing".

For TPrinter, the property value is always poPortrait. The DoGetOrientation and DoSetOrientation methods are called when the property value is read/written. They are declared as virtual methods, and must be overridden in a descendent class to perform actions specific to the implementation.

Orientation determines how the rectangle coordinate values in a paper size are interpreted. The paper size gives it coordinates in a portrait orientation. When one of the Landscape orientations is used, the values must be translated (or rotated) to reflection the page orientation.

See also

TPrinterOrientation

  

Represents page orientations for printers.

TPrinterCanvas.Orientation

  

Orientation of the page on the selected paper.

TPrinterCanvas.Printer

  

Device which uses the canvas to print a document.


Version 3.2 Generated 2024-02-25 Home