PrinterSettings.PrinterResolutions Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets all the resolutions that are supported by this printer.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public PrinterSettings.PrinterResolutionCollection PrinterResolutions { get; }

Property Value

Type: System.Drawing.Printing.PrinterSettings.PrinterResolutionCollection

A PrinterSettings.PrinterResolutionCollection that represents the resolutions that are supported by this printer.

The PrinterSettings.PrinterResolutionCollection contains PrinterResolution instances that represent the printer resolutions supported through the PrinterResolution.Kind property, which contains one of the PrinterResolutionKind values.

Typically, you set a page's paper source through the PageSettings.PrinterResolution property to a valid PrinterResolution available through the PrinterResolutions collection.

If PrinterResolutionKind is Custom, then use the X and Y properties to determine the custom printer resolution in the horizontal and vertical directions, respectively.

The following code example populates the comboPrintResolution combo box with the supported resolutions. The example requires that a PrintDocument variable named printDoc exists and that the specific combo box exists.

// Add list of printer resolutions found on the printer to the combobox.
// The PrinterResolution's ToString() method will be used to provide the display string.

PrinterResolution pkResolution;
for (int i = 0; i < printDoc.PrinterSettings.PrinterResolutions.Count; i++){
    pkResolution = printDoc.PrinterSettings.PrinterResolutions[i];

.NET Framework
Available since 1.1
Return to top