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

Specifies information about how a document is printed, including the printer that prints it, when printing from a Windows Forms application.

The following tables list the members exposed by the PrinterSettings type.

  Name Description
Public method PrinterSettings Initializes a new instance of the PrinterSettings class.
Top

  Name Description
Public property CanDuplex Gets a value indicating whether the printer supports double-sided printing.
Public property Collate Gets or sets a value indicating whether the printed document is collated.
Public property Copies Gets or sets the number of copies of the document to print.
Public property DefaultPageSettings Gets the default page settings for this printer.
Public property Duplex Gets or sets the printer setting for double-sided printing.
Public property FromPage Gets or sets the page number of the first page to print.
Public property Static InstalledPrinters Gets the names of all printers installed on the computer.
Public property IsDefaultPrinter Gets a value indicating whether the PrinterName property designates the default printer, except when the user explicitly sets PrinterName.
Public property IsPlotter Gets a value indicating whether the printer is a plotter.
Public property IsValid Gets a value indicating whether the PrinterName property designates a valid printer.
Public property LandscapeAngle Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape orientation.
Public property MaximumCopies Gets the maximum number of copies that the printer enables the user to print at a time.
Public property MaximumPage Gets or sets the maximum FromPage or ToPage that can be selected in a PrintDialog.
Public property MinimumPage Gets or sets the minimum FromPage or ToPage that can be selected in a PrintDialog.
Public property PaperSizes Gets the paper sizes that are supported by this printer.
Public property PaperSources Gets the paper source trays that are available on the printer.
Public property PrinterName Gets or sets the name of the printer to use.
Public property PrinterResolutions Gets all the resolutions that are supported by this printer.
Public property PrintFileName Gets or sets the file name, when printing to a file.
Public property PrintRange Gets or sets the page numbers that the user has specified to be printed.
Public property PrintToFile Gets or sets a value indicating whether the printing output is sent to a file instead of a port.
Public property SupportsColor Gets a value indicating whether this printer supports color printing.
Public property ToPage Gets or sets the number of the last page to print.
Top

(see also Protected Methods )
  Name Description
Public method Clone Creates a copy of this PrinterSettings.
Public method CreateMeasurementGraphics Overloaded. Returns a Graphics that contains printer information.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetHdevmode Overloaded. Creates a handle to a DEVMODE structure that corresponds to the printer settings.
Public method GetHdevnames Creates a handle to a DEVNAMES structure that corresponds to the printer settings.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IsDirectPrintingSupported Overloaded. Returns a value indicating whether the printer supports printing an image file.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetHdevmode Copies the relevant information out of the given handle and into the PrinterSettings.
Public method SetHdevnames Copies the relevant information out of the given handle and into the PrinterSettings.
Public method ToString Overridden. Provides information about the PrinterSettings in string form.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2015 Microsoft