Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PrinterSettings Members

PrinterSettings overview

Public Constructors

public constructorPrinterSettings Constructor Initializes a new instance of the PrinterSettings class.

Public Properties

public propertyCanDuplex Gets a value indicating whether the printer supports double-sided printing.
public propertyCollate Gets or sets a value indicating whether the printed document is collated.
public propertyCopies Gets or sets the number of copies of the document to print.
public propertyDefaultPageSettings Gets the default page settings for this printer.
public propertyDuplex Gets or sets the printer setting for double-sided printing.
public propertyFromPage Gets or sets the page number of the first page to print.
public propertystatic (Shared in Visual Basic)InstalledPrinters Gets the names of all printers installed on the computer.
public propertyIsDefaultPrinter Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName.
public propertyIsPlotter Gets a value indicating whether the printer is a plotter.
public propertyIsValid Gets a value indicating whether the PrinterName property designates a valid printer.
public propertyLandscapeAngle Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape orientation.
public propertyMaximumCopies Gets the maximum number of copies that the printer allows you to print at a time.
public propertyMaximumPage Gets or sets the maximum FromPage or ToPage that can be selected in a PrintDialog.
public propertyMinimumPage Gets or sets the minimum FromPage or ToPage that can be selected in a PrintDialog.
public propertyPaperSizes Gets the paper sizes that are supported by this printer.
public propertyPaperSources Gets the paper source trays that are available on the printer.
public propertyPrinterName Gets or sets the name of the printer to use.
public propertyPrinterResolutions Gets all the resolutions that are supported by this printer.
public propertyPrintRange Gets or sets the page numbers that the user has specified to be printed.
public propertyPrintToFile Gets or sets a value indicating whether the printing output is sent to a file instead of a port.
public propertySupportsColor Gets a value indicating whether this printer supports color printing.
public propertyToPage Gets or sets the number of the last page to print.

Public Methods

public methodClone Creates a copy of this PrinterSettings object.
public methodCreateMeasurementGraphics Returns a Graphics object that contains printer information that is useful when creating a PrintDocument, for example, the TextMetric objects for the printer.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetHdevmode Overloaded. Creates a handle to a DEVMODE structure that corresponds to the printer settings.
public methodGetHdevnames Creates a handle to a DEVNAMES structure that corresponds to the printer settings.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodSetHdevmode Copies the relevant information out of the given handle and into the PrinterSettings.
public methodSetHdevnames Copies the relevant information out of the given handle and into the PrinterSettings.
public methodToString Overridden. See Object.ToString.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

PrinterSettings Class | System.Drawing.Printing Namespace

Show:
© 2015 Microsoft