mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* Margins.cs: Restyled, implemented missing members * PageSettings.cs: Added missing attributes, stubbed, fixed a few small issues * PreviewPrintController.cs: Stubbed, small issues fixed * PrintController.cs: Marked unfinished, restyled * PrintDocument.cs: Added attributes * PrinterResolution.cs: Added missing method * PrinterSettings.cs: Mono-stylyzed, fixed signatures, removed commented out values * PrinterUnitConvert.cs: Added private constructor * StandardPrintController.cs: Little restyling * PaperKind.cs: Added missing enum values svn path=/trunk/mcs/; revision=22874
57 lines
861 B
C#
57 lines
861 B
C#
//
|
|
// System.Drawing.Printing.PrinterResolution.cs
|
|
//
|
|
// Author:
|
|
// Dennis Hayes ([email protected])
|
|
// Andreas Nahr ([email protected])
|
|
//
|
|
// (C) 2002 Ximian, Inc
|
|
// (C) 2003 Andreas Nahr
|
|
//
|
|
using System;
|
|
|
|
namespace System.Drawing.Printing
|
|
{
|
|
|
|
public class PrinterResolution
|
|
{
|
|
private PrinterResolutionKind kind;
|
|
private int x;
|
|
private int y;
|
|
|
|
private PrinterResolution ()
|
|
{
|
|
}
|
|
|
|
internal PrinterResolution (int x, int y, PrinterResolutionKind kind)
|
|
{
|
|
this.x = x;
|
|
this.y = y;
|
|
this.kind = kind;
|
|
}
|
|
|
|
public int X {
|
|
get {
|
|
return x;
|
|
}
|
|
}
|
|
|
|
public int Y {
|
|
get {
|
|
return y;
|
|
}
|
|
}
|
|
|
|
public PrinterResolutionKind Kind {
|
|
get {
|
|
return kind;
|
|
}
|
|
}
|
|
|
|
public override string ToString ()
|
|
{
|
|
return "[PrinterResolution X=" + x + " Y=" + y + "]";
|
|
}
|
|
}
|
|
}
|