mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
75 lines
1.4 KiB
C#
75 lines
1.4 KiB
C#
//
|
|
// 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;
|
|
}
|
|
}
|
|
}
|