Sign in Join
FPDoc Onlineexperiment

TPrinter.PageWidth property

Member of TPrinterpublicIn unit Printers

Width of the usable area on the selected paper size in "Dots"

Declaration

pascal
property PageWidth: Integer read GetPageWidth;

Description

PageWidth is a read-only Integer property which contains the usable width for the selected paper size as a number of "Dots" for the native printer resolution.

PageWidth uses the PaperSize property to retrieve the work area for the selected paper size. The property value contains the difference between the Right and Left coordinates in the work area rectangle.

The property value is 0 (zero) when the Printers property is empty. You cannot access a selected paper size without a selected printer.

PageWidth is used to derive the page width in TPrinterCanvas when a TPrinter instance has been assigned.

See also

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