TPrinter.Orientation property
Orientation for the page on the paper.
Declaration
property 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
