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

# TPaperSize.PaperRectOf

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

## Declaration

Source position: printers.pas line 210

`public property TPaperSize.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

TPaperSize.SupportedPapers |  | The list of supported paper names for the attached printer device.
TPaperSize.PaperRect |  | The physical and logical dimension rectangles for the paper size.
TPaperSize.PaperName |  | The name used for the paper size, like Legal or Letter.
TPaperSize.Height |  | Physical height for the paper size.
TPaperSize.Width |  | Physical width for the paper size.
TPaperRect |  | Holds the physical and working dimensions for a paper size.