[]
        
(Showing Draft Content)

C1.C1Preview.AdjustPrintPageEventArgs

AdjustPrintPageEventArgs Class

Describes arguments for the AdjustPrintPage event, fired from within C1PrintManager's PrintPage event handler. Allows the user to adjust hard printer margins (e.g. to compensate for a buggy printer driver), or to print the page in user code (in that case, Handled should be set to true by the event handler).

Inheritance
AdjustPrintPageEventArgs
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
public class AdjustPrintPageEventArgs

Constructors

Name Description
AdjustPrintPageEventArgs()

Creates a new instance of AdjustPrintPageEventArgs.

AdjustPrintPageEventArgs(C1PrintManager, Image, RectangleF, PrintPageEventArgs)

Creates a new instance of AdjustPrintPageEventArgs.

Properties

Name Description
Handled

Gets or sets a value indicating whether the event hanlder has printed the page, or whether the caller (print manager) should print the page as usual.

The default is false.

PageImage

Gets the current page image (usually this is a Metafile).

PrintManager

Gets the print manager object that is printing the document.

PrintPageEventArgs

Gets the PrintPageEventArgs object passed into the PrintPage event handler of the print manager.

PrintableArea

Gets or sets the physical printable area of the printer, in hundredths of an inch. When the event is fired, this property contains the printable area of the printer as returned by the printer driver, rotated if landscape printing. You may want to adjust this property e.g. to compensate for a buggy printer driver reporting incorrect hard margins.