2 // System.Windows.Forms.StatusBarPanel
\r
5 // stubbed out by Richard Baumann (biochem333@nyc.rr.com)
\r
6 // Dennis Hayes (dennish@Raytek.com)
\r
8 // (C) Ximian, Inc., 2002
\r
12 using System.ComponentModel;
\r
13 using System.Drawing;
\r
14 namespace System.Windows.Forms {
\r
17 /// Represents a panel in a StatusBar control.
\r
19 public class StatusBarPanel : Component, ISupportInitialize {
\r
22 // --- Private Fields
\r
24 private HorizontalAlignment alignment;
\r
25 private StatusBarPanelAutoSize autoSize;
\r
26 private StatusBarPanelBorderStyle borderStyle;
\r
28 private int minWidth;
\r
29 private StatusBar parent;
\r
30 private StatusBarPanelStyle style;
\r
31 private string text;
\r
32 private string toolTipText;
\r
36 // --- Constructors/Destructors
\r
38 StatusBarPanel() : base()
\r
40 alignment = HorizontalAlignment.Left;
\r
41 autoSize = StatusBarPanelAutoSize.None;
\r
42 borderStyle = StatusBarPanelBorderStyle.Sunken;
\r
45 style = StatusBarPanelStyle.Text;
\r
52 // --- Public Methods
\r
55 public void BeginInit()
\r
57 throw new NotImplementedException ();
\r
60 public void EndInit()
\r
62 throw new NotImplementedException ();
\r
64 public override string ToString()
\r
70 // --- Protected Methods
\r
74 //protected override void Dispose(bool disposing)
\r
76 // throw new NotImplementedException ();
\r
80 // --- Public Properties
\r
82 public HorizontalAlignment Alignment {
\r
84 get { return alignment; }
\r
85 set { alignment = value; }
\r
87 public StatusBarPanelAutoSize AutoSize {
\r
89 get { return autoSize; }
\r
92 if (value != StatusBarPanelAutoSize.None && value != StatusBarPanelAutoSize.Contents && value != StatusBarPanelAutoSize.Spring) {
\r
94 throw new InvalidEnumArgumentException("System.Windows.Forms.StatusBarPanel::set_AutoSize(StatusBarPanelAutoSize) " +
\r
95 "value is not a valid StatusBarPanelAutoSize value");
\r
100 public StatusBarPanelBorderStyle BorderStyle {
\r
102 get { return borderStyle; }
\r
103 set { borderStyle = value; }
\r
107 get { return icon; }
\r
108 set { icon = value; }
\r
110 public int MinWidth {
\r
112 get { return minWidth; }
\r
113 set { minWidth = value; }
\r
115 public StatusBar Parent {
\r
117 get { return parent; }
\r
118 set { parent = value; }
\r
120 public StatusBarPanelStyle Style {
\r
122 get { return style; }
\r
123 set { style = value; }
\r
125 public string Text {
\r
127 get { return text; }
\r
128 set { text = value; }
\r
130 public string ToolTipText {
\r
132 get { return toolTipText; }
\r
133 set { toolTipText = value; }
\r
137 get { return width; }
\r
138 set { width = value; }
\r