PaperSource.cs 863 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // System.Drawing.PaperSource.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // Herve Poussineau ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc
  9. //
  10. using System;
  11. namespace System.Drawing.Printing
  12. {
  13. /// <summary>
  14. /// Summary description for PaperSource.
  15. /// </summary>
  16. public class PaperSource
  17. {
  18. PaperSourceKind _Kind;
  19. string _SourceName;
  20. // NOTE:how to construct this class?
  21. // I have added a constructor, but I am not sure of me...
  22. internal PaperSource(string sourceName, PaperSourceKind kind)
  23. {
  24. _SourceName = sourceName;
  25. _Kind = kind;
  26. }
  27. public PaperSourceKind Kind{
  28. get {
  29. return _Kind; }
  30. }
  31. public string SourceName{
  32. get {
  33. return _SourceName; }
  34. }
  35. public override string ToString(){
  36. string ret = "[PaperSource {0} Kind={1}]";
  37. return String.Format(ret, this.SourceName, this.Kind);
  38. }
  39. }
  40. }