Click or drag to resize

PrintDocument Class

Represents a document that can be printed
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class PrintDocument : Widget

The PrintDocument type exposes the following members.

Constructors
  NameDescription
Public methodPrintDocument
Initializes a new instance of the PrintDocument class
Top
Properties
  NameDescription
Public propertyName
Gets or sets the name of the document to show in the printer queue
Public propertyPageCount
Gets or sets the total number of pages available to be printed in this document.
Public propertyPrintSettings
Gets or sets the print settings for the document when printing.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnPrinted
Raises the Printed event.
Protected methodOnPrinting
Raises the Printing event.
Protected methodOnPrintPage
Raises the PrintPage event.
Public methodPrint
Prints this document immediately using the current PrintSettings
Top
Events
  NameDescription
Public eventPrinted
Occurs after the document has been printed
Public eventPrinting
Occurs before printing has started
Public eventPrintPage
Occurs for each printed page
Top
Fields
  NameDescription
Public fieldStatic memberPrintedEvent
Identifier for handlers when attaching the Printed event
Public fieldStatic memberPrintingEvent
Identifier for handlers when attaching the Printing event
Public fieldStatic memberPrintPageEvent
Identifier for handlers when attaching the PrintPage event
Top
Remarks
A print document uses the Graphics to render its output via the PrintPage event.
See Also