System.Drawing.Printing.PrinterSettings Members

The members of System.Drawing.Printing.PrinterSettings are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Drawing.Printing.PrinterSettings class.

Public Properties

[read-only]
CanDuplexbool.

Gets a value indicating whether the printer supports double-sided printing.

Collatebool.

Gets or sets a value indicating whether the printed document is collated.

Copiesshort.

Gets or sets the number of copies of the document to print.

[read-only]
DefaultPageSettingsPageSettings.

Gets the default page settings for this printer.

DuplexDuplex.

Gets or sets the printer setting for double-sided printing.

FromPageint.

Gets or sets the page number of the first page to print.

[read-only]
static
InstalledPrintersPrinterSettings.StringCollection.

Gets the names of all printers installed on the computer.

[read-only]
IsDefaultPrinterbool.

Gets a value indicating whether the PrinterSettings.PrinterName property designates the default printer, except when the user explicitly sets PrinterSettings.PrinterName.

[read-only]
IsPlotterbool.

Gets a value indicating whether the printer is a plotter.

[read-only]
IsValidbool.

Gets a value indicating whether the PrinterSettings.PrinterName property designates a valid printer.

[read-only]
LandscapeAngleint.

Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape orientation.

[read-only]
MaximumCopiesint.

Gets the maximum number of copies that the printer enables the user to print at a time.

MaximumPageint.

Gets or sets the maximum PrinterSettings.FromPage or PrinterSettings.ToPage that can be selected in a System.Windows.Forms.PrintDialog.

MinimumPageint.

Gets or sets the minimum PrinterSettings.FromPage or PrinterSettings.ToPage that can be selected in a System.Windows.Forms.PrintDialog.

[read-only]
PaperSizesPrinterSettings.PaperSizeCollection.

Gets the paper sizes that are supported by this printer.

[read-only]
PaperSourcesPrinterSettings.PaperSourceCollection.

Gets the paper source trays that are available on the printer.

PrinterNamestring.

Gets or sets the name of the printer to use.

[read-only]
PrinterResolutionsPrinterSettings.PrinterResolutionCollection.

Gets all the resolutions that are supported by this printer.

PrintFileNamestring.

Gets or sets the file name, when printing to a file.

PrintRangePrintRange.

Gets or sets the page numbers that the user has specified to be printed.

PrintToFilebool.

Gets or sets a value indicating whether the printing output is sent to a file instead of a port.

[read-only]
SupportsColorbool.

Gets a value indicating whether this printer supports color printing.

ToPageint.

Gets or sets the number of the last page to print.

Public Methods

Clone() : object

Creates a copy of this System.Drawing.Printing.PrinterSettings.

CreateMeasurementGraphics() : System.Drawing.Graphics

Returns a System.Drawing.Graphics that contains printer information that is useful when creating a System.Drawing.Printing.PrintDocument.

CreateMeasurementGraphics(bool) : System.Drawing.Graphics

Returns a System.Drawing.Graphics that contains printer information, optionally specifying the origin at the margins.

CreateMeasurementGraphics(PageSettings) : System.Drawing.Graphics

Returns a System.Drawing.Graphics that contains printer information associated with the specified System.Drawing.Printing.PageSettings.

CreateMeasurementGraphics(PageSettings, bool) : System.Drawing.Graphics

Creates a System.Drawing.Graphics associated with the specified page settings and optionally specifying the origin at the margins.

GetHdevmode() : IntPtr

Creates a handle to a DEVMODE structure that corresponds to the printer settings.

GetHdevmode(PageSettings) : IntPtr

Creates a handle to a DEVMODE structure that corresponds to the printer and the page settings specified through the pageSettings parameter.

GetHdevnames() : IntPtr

Creates a handle to a DEVNAMES structure that corresponds to the printer settings.

IsDirectPrintingSupported(System.Drawing.Image) : bool

Gets a value indicating whether the printer supports printing the specified image file.

IsDirectPrintingSupported(System.Drawing.Imaging.ImageFormat) : bool

Returns a value indicating whether the printer supports printing the specified image format.

SetHdevmode(IntPtr)

Copies the relevant information out of the given handle and into the System.Drawing.Printing.PrinterSettings.

SetHdevnames(IntPtr)

Copies the relevant information out of the given handle and into the System.Drawing.Printing.PrinterSettings.

override
ToString() : string

Provides information about the System.Drawing.Printing.PrinterSettings in string form.