System.Drawing
[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 07 D1 FA 57 C4 AE D9 F0 A3 2E 84 AA 0F AE FD 0D E9 E8 FD 6A EC 8F 87 FB 03 76 6C 83 4C 99 92 1E B2 3B E7 9A D9 D5 DC C1 DD 9A D2 36 13 21 02 90 0B 72 3C F9 80 95 7F C4 E1 77 10 8F C6 07 77 4F 29 E8 32 0E 92 EA 05 EC E4 E8 21 C0 A5 EF E8 F1 64 5C 4C 0C 93 C1 AB 99 28 5D 62 2C AA 65 2C 1D FA D6 3D 74 5D 6F 2D E5 F1 7E 5E AF 0F C4 96 3D 26 1C 8A 12 43 65 18 20 6D C0 93 34 4D 5A D2 93]
1.0.3300.0
1.0.5000.0
2.0.0.0
Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.
System.Object
System.ICloneable
Typically, you access a through or properties to modify printer settings. The most common printer setting is , which specifies the printer to print to.
For more information about printing with Windows Forms, see the namespace overview. If you wish to print from a Windows Presentation Foundation application, see the namespace.
Specifies information about how a document is printed, including the printer that prints it, when printing from a Windows Forms application.
Constructor
The default constructor initializes all fields to their default values.
Typically, you do not create an instance of , but instead use the to set settings for the printer.
Initializes a new instance of the class.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
To print using duplex, and if the printer supports it, set to one of the values.
Gets a value indicating whether the printer supports double-sided printing.
1.0.5000.0
2.0.0.0
Method
System.Object
To be added
Creates a copy of this .
A copy of this object.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
Collating is performed only when the number of copies is greater than 1. Set the property to specify the number of copies to print.
Setting to true will print a complete copy of the document before the first page of the next copy is printed. false will print each page by the number of copies specified before printing the next page.
Gets or sets a value indicating whether the printed document is collated.
1.0.5000.0
2.0.0.0
Property
System.Int16
To be added: an object of type 'short'
Not all printers support printing multiple copes. You can use the property to determine the maximum number of copies the printer supports. If the number of copies is set higher than the maximum copies supported by the printer, only the maximum number of copies will be printed, and no exception will occur.
Some printers might not support printing more than one copy at a time.
Gets or sets the number of copies of the document to print.
1.0.5000.0
2.0.0.0
Method
System.Drawing.Graphics
With the method, you can obtain a for the printer without creating a print job. You can use the to make decisions on how to layout visual elements like fonts, sizes, and type styles of a complex print job.
Returns a that contains printer information that is useful when creating a .
A that contains information from a printer.
1.0.5000.0
2.0.0.0
Method
2.0.0.0
System.Drawing.Graphics
With the method, you can obtain a for the printer without creating a print job. Use the to make decisions on how to layout visual elements like fonts, sizes, and type styles of a complex print job.
Returns a that contains printer information, optionally specifying the origin at the margins.
A that contains printer information from the .
true to indicate the origin at the margins; otherwise, false.
Method
2.0.0.0
System.Drawing.Graphics
With the method, you can obtain a for the printer without creating a print job. Use the to make decisions on how to layout visual elements like fonts, sizes, and type styles of a complex print job.
Returns a that contains printer information associated with the specified .
A that contains printer information from the .
The to retrieve a graphics object for.
Method
2.0.0.0
System.Drawing.Graphics
The method allows you to obtain a for the printer without creating a print job. Use the to make decisions on how to layout visual elements like fonts, sizes, and type styles of a complex print job.
Creates a associated with the specified page settings and optionally specifying the origin at the margins.
A that contains printer information from the .
The to retrieve a object for.
true to specify the origin at the margins; otherwise, false.
Property
System.Drawing.Printing.PageSettings
To be added: an object of type 'PageSettings'
Page settings include the size of the margins on the page, the size of paper to use, and whether to print in color. For more information about page settings, see the class.
Gets the default page settings for this printer.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Printing.Duplex
To be added: an object of type 'Duplex'
You can use the property to check to see if the printer supports duplex printing.
Gets or sets the printer setting for double-sided printing.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
The and properties are used by the when the user selects a print range. The property must be set to true to enable the user to specify a print range. In addition, the requires the and to be specified and the value to be within that range.
During the printing process, in the event, view the to determine what should be printed. If is , use the and properties to determine what pages should be printed. If is , then specify output only for the selected pages.
The , and can also be set programmatically, though the implementation is the same.
Gets or sets the page number of the first page to print.
1.0.5000.0
2.0.0.0
Method
System.IntPtr
DEVMODE structures are device specific. Copying a DEVMODE structure from one to a for a different printer is not supported. When you are done with the handle that is created through this method, you must deallocate it yourself by calling the native Win32 GlobalFree method. When you call this method, you pass as a parameter the return value from the method.
Creates a handle to a DEVMODE structure that corresponds to the printer settings.
A handle to a DEVMODE structure.
1.0.5000.0
2.0.0.0
Method
System.IntPtr
DEVMODE structures are device specific. Copying a DEVMODE structure from one to a for a different printer is not supported.
When you are done with the handle that is created through this method, you must deallocate it yourself by calling the native Win32 GlobalFree method. When you call this method, you pass as a parameter the return value from the method.
Creates a handle to a DEVMODE structure that corresponds to the printer and the page settings specified through the parameter.
A handle to a DEVMODE structure.
The object that the DEVMODE structure's handle corresponds to.
1.0.5000.0
2.0.0.0
Method
System.IntPtr
When you are done with the handle that is created through this method, you must deallocate it yourself by calling the native Win32 GlobalFree method. When you call this method, you pass as a parameter the return value from the method.
Creates a handle to a DEVNAMES structure that corresponds to the printer settings.
A handle to a DEVNAMES structure.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Printing.PrinterSettings+StringCollection
To be added: an object of type 'PrinterSettings+StringCollection'
You can use the collection of installed printer names to provide the user a choice of printers to print to.
Gets the names of all printers installed on the computer.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
always returns false when you explicitly set the property to a string value other than null.
Gets a value indicating whether the property designates the default printer, except when the user explicitly sets .
1.0.5000.0
2.0.0.0
Method
2.0.0.0
System.Boolean
To be added.
Gets a value indicating whether the printer supports printing the specified image file.
true if the printer supports printing the specified image; otherwise, false.
The image to print.
Method
2.0.0.0
System.Boolean
To be added.
Returns a value indicating whether the printer supports printing the specified image format.
true if the printer supports printing the specified image format; otherwise, false.
An to print.
Property
System.Boolean
To be added: an object of type 'bool'
A plotter is a printer that is vector-based as opposed to raster-based. Most vector-based printers use individual plotting pens to produce output.
Gets a value indicating whether the printer is a plotter.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
When you get or set some properties, a valid printer is required or else an exception is raised. To avoid exceptions, use the property after setting the to safely determine if the printer is valid.
Gets a value indicating whether the property designates a valid printer.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
Valid rotation values are 90 and 270 degrees. If landscape is not supported, the only valid rotation value is 0 degrees. You set the property to true to print a page in landscape format.
Gets the angle, in degrees, that the portrait orientation is rotated to produce the landscape orientation.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
Set the property to the number of copies to print. Use the property to determine if your printer supports printing multiple copies at a time, because some printers do not.
Gets the maximum number of copies that the printer enables the user to print at a time.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
The and properties are used by the when the user selects a print range. The property must be set to true to enable the user to specify a print range. When setting the or values programmatically, ensure that they are within the range defined by the and properties, or an exception is thrown when displaying the .
Gets or sets the maximum or that can be selected in a .
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
The and properties are used by the when the user selects a print range. The property must be set to true to enable the user to specify a print range. When setting the or values programmatically, ensure that they are within the range defined by the and properties, or an exception is thrown when displaying the .
Gets or sets the minimum or that can be selected in a .
1.0.5000.0
2.0.0.0
Property
System.Drawing.Printing.PrinterSettings+PaperSizeCollection
To be added: an object of type 'PrinterSettings+PaperSizeCollection'
The contains instances that represent the paper sizes through the property, which contains one of the values.
Typically, you set a page's paper size through the property to a valid available through the collection.
To specify a custom paper size, see the constructor.
Gets the paper sizes that are supported by this printer.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Printing.PrinterSettings+PaperSourceCollection
To be added: an object of type 'PrinterSettings+PaperSourceCollection'
The contains instances that represent the paper source trays through the property, which contains one of the values.
Typically, you set a page's paper source through the property to a valid available through the collection.
Gets the paper source trays that are available on the printer.
1.0.5000.0
2.0.0.0
Property
System.String
To be added: an object of type 'string'
After setting the printer name, call to determine if the printer name is recognized as a valid printer on the system.
You can also use the property to get a list of printers installed on the system.
Gets or sets the name of the printer to use.
1.0.5000.0
2.0.0.0
Property
System.Drawing.Printing.PrinterSettings+PrinterResolutionCollection
To be added: an object of type 'PrinterSettings+PrinterResolutionCollection'
The contains instances that represent the printer resolutions supported through the property, which contains one of the values.
Typically, you set a page's paper source through the property to a valid available through the collection.
If is Custom, then use the and properties to determine the custom printer resolution in the horizontal and vertical directions, respectively.
Gets all the resolutions that are supported by this printer.
1.0.5000.0
2.0.0.0
Property
2.0.0.0
System.String
To be added.
To be added.
Gets or sets the file name, when printing to a file.
Property
System.Drawing.Printing.PrintRange
To be added: an object of type 'PrintRange'
The property is used by the .when the user selects a print range. The default is AllPages. To enable the user to specify a range of pages to print, the property must be set to true. To enable the user to specify the selected pages to print, the property must be set to true.
During the printing process, in the event, view the to determine what should be printed. If is , use the and properties to determine what pages should be printed. If is , then specify output only for the selected pages.
The , and can also be set programmatically, though the implementation is the same.
Gets or sets the page numbers that the user has specified to be printed.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
The property is used by the when the user selects the Print to file option. In such a case, the output port is set to "FILE," causing the Windows printing subsystem to prompt the user for a file name when the method is called.
The property is only used by the and cannot be set programmatically. The Print to file option only appears on the when the property is set to true.
Gets or sets a value indicating whether the printing output is sent to a file instead of a port.
1.0.5000.0
2.0.0.0
Method
System.Void
DEVMODE structures are device specific and copying a DEVMODE structure from one to a for a different printer is not supported.
Copies the relevant information out of the given handle and into the .
The handle to a Win32 DEVMODE structure.
1.0.5000.0
2.0.0.0
Method
System.Void
To be added
Copies the relevant information out of the given handle and into the .
The handle to a Win32 DEVNAMES structure.
1.0.5000.0
2.0.0.0
Property
System.Boolean
To be added: an object of type 'bool'
To print using color, and if the printer supports it, set to true.
Gets a value indicating whether this printer supports color printing.
1.0.5000.0
2.0.0.0
Property
System.Int32
To be added: an object of type 'int'
The and properties are used by the when the user selects a print range. The property must be set to true to enable the user to specify a print range. In addition, the also requires the and to be specified and the value to be within that range.
During the printing process, in the event, view the to determine what should be printed. If is , use the and properties to determine what pages should be printed. If is , then specify output only for the selected pages.
The , and can also be set programmatically, though the implementation is the same.
Gets or sets the number of the last page to print.
1.0.5000.0
2.0.0.0
Method
System.String
To be added
Provides information about the in string form.
A string.
1.0.5000.0
2.0.0.0