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

# TPaperSize.PaperName

The name used for the paper size, like Legal or Letter.

## Declaration

Source position: printers.pas line 204

`public property TPaperSize.PaperName : string read GetPaperName write SetPaperName;`

## Description

Reading a value for the property causes the SupportedPapers and DefaultPapers to be initialized if default paper sizes do not already exist. It also occurs when a new printer device is selected. If a custom paper size is set, its name is returned as the property value. Otherwise, the selected paper name for the printer device is returned. If the property value cannot be determined, the value in DefaultPaperName is used.

## See also

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.
TPaperSize.DefaultPaperName |  | The default paper name used when not selected or available in the printer device.
TPrinter.DoEnumPapers |  | Performs actions needed to get the supported papers for the print device.
TPrinter.DoGetPaperName |  | Performs action needed to get the selected paper name for the current printer.