System.Drawing.Printing.PrintController.OnStartPage Method

When overridden in a derived class, begins the control sequence that determines when and how to print a page of a document.

Syntax

public virtual System.Drawing.Graphics OnStartPage (PrintDocument document, PrintPageEventArgs e)

Parameters

document
A System.Drawing.Printing.PrintDocument that represents the document currently being printed.
e
A System.Drawing.Printing.PrintPageEventArgs that contains the event data.

Returns

A System.Drawing.Graphics that represents a page from a System.Drawing.Printing.PrintDocument.

Remarks

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0