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