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

# TPaperSize.DefaultPaperName

The default paper name used when not selected or available in the printer device.

## Declaration

Source position: printers.pas line 205

`public property TPaperSize.DefaultPaperName : string read GetDefaultPaperName;`

## Description

Reading a value for the property causes the SupportedPapers and DefaultPapers to be initialized if the paper sizes do not already exist. It also occurs when a new printer device is selected. When DefaultPapers is True, the first value in SupportedPapers is used as the property value. Otherwise, the default paper name for the printer device is returned.

DefaultPaperName is used when getting the value for the PaperName property.

## See also

TPaperSize.PaperName |  | The name used for the paper size, like Legal or Letter.
TPaperSize.SupportedPapers |  | The list of supported paper names for the attached printer device.
TPaperSize.DefaultPapers |  | Indicates if default paper sizes have been defined and added to SupportedPapers.
TPrinter.DoGetDefaultPaperName |  | Performs actions needed to get the name for the default paper on the print device.