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.ComponentModel.Component System.ComponentModel.ToolboxItemFilter("System.Drawing.Printing", System.ComponentModel.ToolboxItemFilterType.Allow) System.ComponentModel.DefaultProperty("DocumentName") System.ComponentModel.DefaultEvent("PrintPage")

Typically, you create an instance of the class, set properties such as the and , and call the method to start the printing process. Handle the event where you specify the output to print, by using the property of the .

For more information about printing from a Windows Form application, see the Windows Forms Print Support. If you wish to print from a Windows Presentation Foundation application, see the namespace.

Defines a reusable object that sends output to a printer, when printing from a Windows Forms application.

- Constructor

  The default constructor initializes all fields based upon the default printer. Typically, after creating a new , you set printer and page settings that affect the output through the and properties, respectively.

  Initializes a new instance of the class.

  1.0.5000.0
  2.0.0.0
- Event
  System.Drawing.Printing.PrintEventHandler

  Typically, you handle the event to initialize fonts, file streams, and other resources used during the printing process.

  To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs. For more information about handling events with delegates, see [<topic://cpconEventsDelegates>].

  Occurs when the method is called and before the first page of the document prints.

  1.0.5000.0
  2.0.0.0
- Property
  System.Drawing.Printing.PageSettings To be added: an object of type 'PageSettings'

  You can specify several default page settings through the property. For example, the property specifies whether the page prints in color, the property specifies landscape or portrait orientation, and the property specifies the margins of the page.

  To specify settings on a page-by-page basis, handle the or event and modify the argument included in the or , respectively.

  After printing has started, changes to page settings through the property will not affect pages being printed.

  Gets or sets page settings that are used as defaults for all pages to be printed.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.Browsable(false)
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
- Property
  System.String To be added: an object of type 'string'

  The property does not specify the file to print. Rather, you specify the output to print by handling the event. For an example, see the class overview.

  Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.DefaultValue("document")
- Event
  System.Drawing.Printing.PrintEventHandler

  Typically, you handle the event to release fonts, file streams, and other resources used during the printing process, like fonts.

  You indicate that there are no more pages to print by setting the property to false in the event. The event also occurs if the printing process is canceled or an exception occurs during the printing process.

  To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs. For more information about handling events with delegates, see [<topic://cpconEventsDelegates>].

  Occurs when the last page of the document has printed.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void ``

  The method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

  When a derived class calls the method, it raises the event by invoking the event handler through a delegate. For more information, see [<topic://cpconProvidingEventFunctionality>].

  Raises the event. It is called after the method is called and before the first page of the document prints.

  A that contains the event data. 1.0.5000.0 2.0.0.0
- Method
  System.Void ``

  The method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class. The method is also called if the printing process is canceled or an exception occurs during the printing process.

  When a derived class calls the method, it raises the event by invoking the event handler through a delegate. For more information, see [<topic://cpconProvidingEventFunctionality>].

  Raises the event. It is called when the last page of the document has printed.

  A that contains the event data. 1.0.5000.0 2.0.0.0
- Method
  System.Void ``

  The method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

  When a derived class calls the method, it raises the event by invoking the event handler through a delegate. For more information, see [<topic://cpconProvidingEventFunctionality>].

  Raises the event. It is called before a page prints.

  A that contains the event data. 1.0.5000.0 2.0.0.0
- Method
  System.Void ``

  The method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

  When a derived class calls the method, it raises the event by invoking the event handler through a delegate. For more information, see [<topic://cpconProvidingEventFunctionality>].

  Raises the event. It is called immediately before each event.

  A that contains the event data. 1.0.5000.0 2.0.0.0
- Property
  System.ComponentModel.DefaultValue(false)
  System.Boolean To be added.

  Calculating the area available to print requires knowing the physical size of the paper, the margins for the page, and the location of the object origin. When is true, the object location takes into account the property value and the printable area of the page. When is false, only the printable area of the page is used to determine the location of the object origin, the value is ignored.

  For example, if is true, and is set for 1 inch on each side, the object included in the is located 1 inch from the left and top of the page. If the printable area of the page is .25 of an inch on each side and is false, the object is located .25 of an inch from the left and top of the page.

  The printable area of a page varies from printer to printer and is not guaranteed to be symmetrical.

  Gets or sets a value indicating whether the position of a graphics object associated with a page is located just inside the user-specified margins or at the top-left corner of the printable area of the page.

  1.0.5000.0
  2.0.0.0
- Method
  System.Void

  Specify the output to print by handling the event and by using the included in the .

  Use the property to specify which printer should print the document.

  The method prints the document without using a print dialog. Use a when you want to offer the user the ability to choose print settings.

  If an exception that is not handled by the method is thrown during printing, the printing of the document is aborted.

  Starts the document's printing process.

  1.0.5000.0
  2.0.0.0
- Property
  System.Drawing.Printing.PrintController To be added: an object of type 'PrintController'

  A print controller guides the printing process in several ways. For example, to print a document, you need to convert it to a object. A specifies where to draw the graphic in an image for a print preview or on a printer to actually print the document. A print controller can also specify whether to print a document immediately, or wait a specified interval.

  Gets or sets the print controller that guides the printing process.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.Browsable(false)
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
- Property
  System.Drawing.Printing.PrinterSettings To be added: an object of type 'PrinterSettings'

  You can specify several printer settings through the property. For example, use the property to specify the number of copies you want to print, the property to specify the printer to use, and the property to specify the range of pages you want to print.

  Gets or sets the printer that prints the document.

  1.0.5000.0
  2.0.0.0
  System.ComponentModel.Browsable(false)
  System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)
- Event
  System.Drawing.Printing.PrintPageEventHandler

  To specify the output to print, use the property of the . For example, to specify a line of text that should be printed, draw the text using the method.

  In addition to specifying the output, you can indicate if there are additional pages to print by setting the property to true. The default is false, which indicates that there are no more pages to print. Individual page settings can also be modified through the and the print job can be canceled by setting the property to true. To print each page of a document using different page settings, handle the event.

  To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs. For more information about handling events with delegates, see [<topic://cpconEventsDelegates>].

  Occurs when the output to print for the current page is needed.

  1.0.5000.0
  2.0.0.0
- Event
  System.Drawing.Printing.QueryPageSettingsEventHandler

  It is possible to print each page of a document using different page settings. You set page settings by modifying individual properties of the property or by setting the property to a . Changes made to the affect only the current page, not the document's default page settings. The print job can also be canceled by setting the property to true for the .

  To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs. For more information about handling events with delegates, see [<topic://cpconEventsDelegates>].

  Occurs immediately before each event.

  1.0.5000.0
  2.0.0.0
- Method
  System.String To be added

  Provides information about the print document, in string form.

  A string.

  1.0.5000.0
  2.0.0.0