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

# TPrinterCanvas.PaperWidth

Horizontal size for the paper selected in the print device.

## Declaration

Source position: printers.pas line 126

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

TPrinterCanvas.Printer |  | Device which uses the canvas to print a document.
TPrinterCanvas.PaperHeight |  | Vertical size for the paper selected in the print device.
TPrinter.PaperSize |  | Contains paper sizes available and/or selected for the print device.