|
|
@@ -1,40 +1,51 @@
|
|
|
//
|
|
|
-// System.Drawing.PrinterResolution.cs
|
|
|
+// System.Drawing.Printing.PrinterResolution.cs
|
|
|
//
|
|
|
// Author:
|
|
|
-// Dennis Hayes ([email protected])
|
|
|
+// Dennis Hayes ([email protected])
|
|
|
+// Andreas Nahr ([email protected])
|
|
|
//
|
|
|
-// (C) 2002 Ximian, Inc
|
|
|
+// (C) 2002 Ximian, Inc
|
|
|
+// (C) 2003 Andreas Nahr
|
|
|
//
|
|
|
using System;
|
|
|
|
|
|
-namespace System.Drawing.Printing {
|
|
|
- /// <summary>
|
|
|
- /// Summary description for PrinterResolution.
|
|
|
- /// </summary>
|
|
|
- public class PrinterResolution {
|
|
|
- public PrinterResolutionKind kind;
|
|
|
- public int x;
|
|
|
- public int y;
|
|
|
- public PrinterResolution(){
|
|
|
- x = -1;
|
|
|
- y = -1;
|
|
|
- }
|
|
|
- public int X{
|
|
|
- get{
|
|
|
+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{
|
|
|
+ }
|
|
|
+
|
|
|
+ public int Y {
|
|
|
+ get {
|
|
|
return y;
|
|
|
}
|
|
|
- }
|
|
|
-// public int Kind{
|
|
|
-// get{
|
|
|
-// return kind;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ }
|
|
|
|
|
|
+ public PrinterResolutionKind Kind {
|
|
|
+ get {
|
|
|
+ return kind;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|