Table of Contents

Interface IPrintDocumentHandler

Namespace
Alternet.Drawing.Printing
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with print document.

public interface IPrintDocumentHandler : IDisposable

Properties

DocumentName

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

DrawingContext

Gets the DrawingContext used to paint the page.

HasMorePages

Gets or sets a value indicating whether an additional page should be printed.

MarginBounds

Gets the rectangular area that represents the portion of the page inside the margins, in device-independent units.

OriginAtMargins

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.

PageBounds

Gets the rectangular area that represents the portion of the page inside the margins, in device-independent units.

PageSettings

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

PhysicalPageBounds

Gets the rectangular area that represents the total area of the page, in millimeters.

PrintablePageBounds

Gets the rectangular area that represents the printable portion of the page, in device-independent units.

PrintedPageNumber

Gets the 1-based number of the page being printed.

PrinterSettings

Gets the printer settings for this document.

Methods

Print()

Starts the document's printing process.

Events

BeginPrint

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

EndPrint

Occurs when the last page of the document has printed.

PrintPage

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