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