Sign in Join
FPDoc Onlineexperiment

TPaperSize class

In unit Printers

Size for a paper used on an attached printer device.

Declaration

pascal
TPaperSize = class(TObject)

Inheritance

  1. TPaperSize
  2. TObject

Description

TPaperSize represents paper size information for an attached printer device. It provides an internal reference to the printer device passed to the Create constructor, and allows the TPrinter instance to be queried to retrieve its supported paper names and sizes.

TPaperSize provides properties which identify the paper by name, a list of paper names supported for the printer device, and provides access to the physical and logical size information for each. The physical size contains the bounds for the paper size. The logical paper size (or work rectangle) contains the bounds for the usable print area for the paper size. Bounds values are expressed as dots per inch (DPI).

TPaperSize is the type used to implement the PaperSize property in TPrinter.

See also

Properties

DefaultPaperspublicIndicates if default paper sizes have been defined and added to SupportedPapers.
WidthpublicPhysical width for the paper size.
HeightpublicPhysical height for the paper size.
PaperNamepublicThe name used for the paper size, like Legal or Letter.
DefaultPaperNamepublicThe default paper name used when not selected or available in the printer device.
PaperRectpublicThe physical and logical dimension rectangles for the paper size.
SupportedPaperspublicThe list of supported paper names for the attached printer device.
PaperRectOfpublicGets the dimension for a supported paper with the specified name.

Methods

CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.

Inherited

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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