2
0

PrinterResolution.cs 861 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // System.Drawing.Printing.PrinterResolution.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc
  9. // (C) 2003 Andreas Nahr
  10. //
  11. using System;
  12. namespace System.Drawing.Printing
  13. {
  14. public class PrinterResolution
  15. {
  16. private PrinterResolutionKind kind;
  17. private int x;
  18. private int y;
  19. private PrinterResolution ()
  20. {
  21. }
  22. internal PrinterResolution (int x, int y, PrinterResolutionKind kind)
  23. {
  24. this.x = x;
  25. this.y = y;
  26. this.kind = kind;
  27. }
  28. public int X {
  29. get {
  30. return x;
  31. }
  32. }
  33. public int Y {
  34. get {
  35. return y;
  36. }
  37. }
  38. public PrinterResolutionKind Kind {
  39. get {
  40. return kind;
  41. }
  42. }
  43. public override string ToString ()
  44. {
  45. return "[PrinterResolution X=" + x + " Y=" + y + "]";
  46. }
  47. }
  48. }