Sign in Join
FPDoc Onlineexperiment

TPaperSize.PaperRectOf property

Member of TPaperSizepublicIn unit Printers

Gets the dimension for a supported paper with the specified name.

Declaration

pascal
property PaperRectOf[aName: string]: TPaperRect read PaperRectOfName;

Description

PaperRectOf is a read-only indexed TPaperRect property which provides access to the physical and logical dimensions for a paper size by its name. For example:

ARect := Printer.PaperSize.PaperRectOf('Letter');

Use the PhysicalRect member in the TPaperRect property value to get the physical bounds for the paper size. Use the WorkRect member to get the usable bounds for the paper size. The coordinates in the property value are expressed as dots (or printer pixels - if you will).

Use the Width and Height properties to get the physical paper size calculated for the paper size.

See also

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