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

TPrinterCanvas.PageWidth

Size of the printable area for the page on the horizontal axis.

Declaration

Source position: printers.pas line 125

public property TPrinterCanvas.PageWidth : Integer
  read GetPageWidth;

Description

PageWidth is a read-only Integer property with the size for the printable page area on the horizontal axis of the page orientation. The value is expressed as the number of "Dots" on the device in Printer.

When Printer has been assigned and HasDefaultMargins is True, the PageWidth property in the device is used. Otherwise, the property value is calculated by subtracting the values in LeftMargin and RightMargin from the PaperWidth for the printer Canvas.

Use PageHeight to get size of the printable page on the vertical axis for the page orientation.

Use PaperHeight and PaperWidth to get the dimensions for the selected paper in Printer.

See also

TPrinterCanvas.LeftMargin

  

The size of the margin at the left edge of the canvas.

TPrinterCanvas.RightMargin

  

The size of the margin at the right edge of the canvas.

TPrinterCanvas.PaperHeight

  

Vertical size for the paper selected in the print device.

TPrinterCanvas.PageWidth

  

Size of the printable area for the page on the horizontal axis.

TPrinterCanvas.Orientation

  

Orientation of the page on the selected paper.

TPrinterCanvas.YDPI

  

DPI (Dots per Inch) in the vertical direction for the print device.

TPrinterCanvas.XDPI

  

DPI (Dots per Inch) in the horizontal direction for the print device.

TPrinter.PageHeight

  

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

TPrinter.PageWidth

  

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


Version 4.0 Generated 2025-05-03 Home