Sign in Join
FPDoc Onlineexperiment

TPrinter.CanvasClass property

Member of TPrinterpublicIn unit Printers

Class reference used to create new instances of the printer canvas.

Declaration

pascal
property CanvasClass: TPrinterCanvasRef read GetCanvasClass write SetCanvasClass;

Description

CanvasClass is a TPrinterCanvasRef property which contains the class reference used to create new instances of the class for the Canvas property. In TPrinter, the TPrinterCanvas class is used for the Canvas property. In a descendent class, a different printer canvas may be needed. CanvasClass allows the descendant to determine the correct class type in its DoGetDefaultCanvasClass method. The property value is always returns Nil when RawMode is set to True.

CanvasClass is used in the read access specifier for the Canvas property to create a new instance of the class reference and assign it to the Canvas member (when needed).

See also

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