Sign in Join
FPDoc Onlineexperiment

TPrinterCanvas.PaperWidth property

Member of TPrinterCanvaspublicIn unit Printers

Horizontal size for the paper selected in the print device.

Declaration

pascal
property PaperWidth: Integer read GetPaperWidth write SetPaperWidth;

Description

PaperWidth is an Integer property which contains the width for the current paper as the number of "Dots" along its horizontal axis.

When Printer has been assigned, the Width in its PaperSize property is used as the property value. Otherwise, the existing property value is returned. If the existing value is 0 (zero), the width (in Dots) for the "A4" paper size (in portrait orientation) is used as the property value.

Use PaperHeight to get the height for the paper in Dots along its vertical axis.

See also

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