This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
PrinterSettings Members
Public:
Constructor
Properties
CanDuplex |
Gets a value indicating whether the printer supports duplex (double-sided) printing. |
Collate |
Gets or sets a value indicating whether the print out is collated. |
Copies |
Gets or sets the number of copies to print. |
DefaultPageSettings |
Gets the default page settings for this printer. |
Duplex |
Gets or sets the printer's duplex setting. |
FromPage |
Gets or sets the first page to print. The NGWS runtime does not by any attention to this property; it is up to the application to interpret it as appropriate. |
InstalledPrinters |
Gets the names of all printers installed on the machine. |
IsPlotter |
Gets a value indicating whether the printer is a plotter, as opposed to a raster printer. |
IsValid |
Gets a value indicating whether the PrinterName property designates a valid printer. |
LandscapeAngle |
Gets the angle, in degrees, which the portrait orientation is rotated to produce the landscape orientation. |
MaximumCopies |
Gets the maximum number of copies allowed by the printer. |
MaximumPage |
Gets or sets the highest FromPage or ToPage which may be selected in a print dialog box. |
MinimumPage |
The lowest FromPage or ToPage which may be selected in a print dialog box. |
PaperSizes |
Gets the paper sizes supported by this printer. |
PaperSources |
Gets the paper sources available on this printer. |
PrinterName |
Gets or sets the name of the printer. |
PrinterResolutions |
Gets the resolutions supported by this printer. |
PrintRange |
Gets or sets a value indicating the pages the user has asked to print. |
SupportsColor |
Gets a value indicating whether the printer supports color printing. |
ToPage |
Gets or sets the last page to print. The NGWS runtime does not pay any attention to this property; it is up to the application to interpret it as appropriate. |
Methods
Clone |
Creates an identical copy of this object. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (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. |
GetHDEVMODE |
Overloaded. [To be supplied.] |
GetHDEVNAMES |
Creates a handle to a DEVNAMES structure which correspond too the printer settings. When you are done with the handle, you must deallocate it yourself: Windows.GlobalFree(handle); Where "handle" is the return value from this method. |
GetType (inherited from Object) |
Gets the Type of the Object. |
SetHDEVMODE |
Copies the relevant information out of the handle and into the PrinterSettings. |
SetHDEVNAMES |
Copies the relevant information out of the handle and into the PrinterSettings. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
PrinterSettings Class | System.Drawing.Printing Namespace