**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / Gtk / MeasureItemEventArgs.cs
bloba4c3db75a81f4563b8e176c3a21787406f0d8ed2
1 //
2 // System.Windows.Forms.MeasureItemEventArgs.cs
3 //
4 // Author:
5 // stubbed out by Paul Osman (paul.osman@sympatico.ca)
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
8 //
9 // (C) 2002 Ximian, Inc
12 using System;
13 using System.Reflection;
14 using System.Globalization;
15 //using System.Windows.Forms.AccessibleObject.IAccessible;
16 using System.Drawing;
18 namespace System.Windows.Forms {
21 /// <summary>
22 /// </summary>
24 public class MeasureItemEventArgs : EventArgs {
26 #region Fields
28 private Graphics graphics;
29 private int index;
30 private int itemheight = -1;
31 private int itemwidth = -1;
33 #endregion
36 // --- Constructors
38 public MeasureItemEventArgs(Graphics graphics, int index)
40 this.index = index;
41 this.graphics = graphics;
44 public MeasureItemEventArgs(Graphics graphics, int index, int itemheight)
46 this.index = index;
47 this.graphics = graphics;
48 itemheight = ItemHeight;
51 #region Public Properties
53 public Graphics Graphics
55 get
57 return graphics;
61 public int Index
63 get
65 return index;
69 public int ItemHeight
71 get
73 return itemheight;
75 set
77 itemheight = value;
81 public int ItemWidth
83 get
85 return itemwidth;
87 set
89 itemwidth = value;
93 #endregion