PrinterResolution.X Property

 

Gets the horizontal printer resolution, in dots per inch.

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

public int X { get; set; }

Property Value

Type: System.Int32

The horizontal printer resolution, in dots per inch, if Kind is set to Custom; otherwise, a dmPrintQuality value.

dmPrintQuality is a member of the DEVMODE (device mode) structure, which defines constants that map to printer quality settings. The X property contains the value DMRES_HIGH if Kind is set to High, DMRES_MEDIUM if Kind is set to Medium, DMRES_LOW if Kind is set to Low, and DMRES_DRAFT if Kind is set to Draft.

For more information about the DEVMODE structure, see the MSDN Library at http://msdn.microsoft.com/library.

.NET Framework
Available since 1.1
Return to top
Show: