| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // System.Drawing.PrintPageEventArgs.cs
- //
- // Author:
- // Dennis Hayes ([email protected])
- // Herve Poussineau ([email protected])
- //
- // (C) 2002 Ximian, Inc
- //
- using System;
- using System.Drawing;
- namespace System.Drawing.Printing {
- /// <summary>
- /// Summary description for PrintPageEventArgs.
- /// </summary>
- public class PrintPageEventArgs : EventArgs {
- bool cancel;
- Graphics graphics;
- bool hasmorePages;
- Rectangle marginBounds;
- Rectangle pageBounds;
- PageSettings pageSettings;
- public PrintPageEventArgs(Graphics graphics, Rectangle marginBounds,
- Rectangle pageBounds, PageSettings pageSettings) {
- this.graphics = graphics;
- this.marginBounds = marginBounds;
- this.pageBounds = pageBounds;
- this.pageSettings = pageSettings;
- }
- public bool Cancel {
- get{
- return cancel;
- }
- set{
- cancel = value;
- }
- }
- public Graphics Graphics {
- get{
- return graphics;
- }
- }
- public bool HasMorePages {
- get{
- return hasmorePages;
- }
- set{
- hasmorePages = value;
- }
- }
- public Rectangle MarginBounds {
- get{
- return marginBounds;
- }
- }
- public Rectangle PageBounds {
- get{
- return pageBounds;
- }
- }
- public PageSettings PageSettings {
- get{
- return pageSettings;
- }
- }
-
- // used in PrintDocument.Print()
- internal void SetGraphics(Graphics g)
- {
- graphics = g;
- }
- }
- }
|