mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* PaintEventHandler.cs * PropertyTabChangedEventArgs.cs * PropertyTabChangedEventHandler.cs * PropertyValueChangedEventArgs.cs * PropertyValueChangedEventHandler.cs * QueryAccessibilityHelpEventArgs.cs * QueryAccessibilityHelpEventHandler.cs * QueryContinueDragEventArgs.cs * QueryContinueDragEventHandler.cs * RightToLeft.cs * ScrollEventArgs.cs * ScrollEventHandler.cs * ScrollEventType.cs * SelectedGridItemChangedEventArgs.cs * SelectedGridItemChangedEventHandler.cs * SizeGripStyle.cs * SplitterEventArgs.cs * SplitterEventHandler.cs * StatusBar.cs * StatusBarDrawItemEventArgs.cs * StatusBarDrawItemEventHandler.cs * StatusBarPanel.cs svn path=/trunk/mcs/; revision=8438
142 lines
3.0 KiB
C#
142 lines
3.0 KiB
C#
//
|
|
// System.Windows.Forms.StatusBarPanel
|
|
//
|
|
// Author:
|
|
// stubbed out by Richard Baumann ([email protected])
|
|
// Dennis Hayes ([email protected])
|
|
//
|
|
// (C) Ximian, Inc., 2002
|
|
//
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
namespace System.Windows.Forms {
|
|
|
|
/// <summary>
|
|
/// Represents a panel in a StatusBar control.
|
|
/// </summary>
|
|
public class StatusBarPanel : Component, ISupportInitialize {
|
|
|
|
//
|
|
// --- Private Fields
|
|
//
|
|
private HorizontalAlignment alignment;
|
|
private StatusBarPanelAutoSize autoSize;
|
|
private StatusBarPanelBorderStyle borderStyle;
|
|
private Icon icon;
|
|
private int minWidth;
|
|
private StatusBar parent;
|
|
private StatusBarPanelStyle style;
|
|
private string text;
|
|
private string toolTipText;
|
|
private int width;
|
|
|
|
//
|
|
// --- Constructors/Destructors
|
|
//
|
|
StatusBarPanel() : base()
|
|
{
|
|
alignment = HorizontalAlignment.Left;
|
|
autoSize = StatusBarPanelAutoSize.None;
|
|
borderStyle = StatusBarPanelBorderStyle.Sunken;
|
|
icon = null;
|
|
minWidth = 10;
|
|
style = StatusBarPanelStyle.Text;
|
|
text = "";
|
|
toolTipText = "";
|
|
width = 100;
|
|
}
|
|
|
|
//
|
|
// --- Public Methods
|
|
//
|
|
[MonoTODO]
|
|
public void BeginInit()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
[MonoTODO]
|
|
public void EndInit()
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return text;
|
|
}
|
|
|
|
//
|
|
// --- Protected Methods
|
|
//
|
|
|
|
//inherited
|
|
//protected override void Dispose(bool disposing)
|
|
//{
|
|
// throw new NotImplementedException ();
|
|
//}
|
|
|
|
//
|
|
// --- Public Properties
|
|
//
|
|
public HorizontalAlignment Alignment {
|
|
|
|
get { return alignment; }
|
|
set { alignment = value; }
|
|
}
|
|
public StatusBarPanelAutoSize AutoSize {
|
|
|
|
get { return autoSize; }
|
|
set
|
|
{
|
|
if (value != StatusBarPanelAutoSize.None && value != StatusBarPanelAutoSize.Contents && value != StatusBarPanelAutoSize.Spring) {
|
|
|
|
throw new InvalidEnumArgumentException("System.Windows.Forms.StatusBarPanel::set_AutoSize(StatusBarPanelAutoSize) " +
|
|
"value is not a valid StatusBarPanelAutoSize value");
|
|
}
|
|
autoSize = value;
|
|
}
|
|
}
|
|
public StatusBarPanelBorderStyle BorderStyle {
|
|
|
|
get { return borderStyle; }
|
|
set { borderStyle = value; }
|
|
}
|
|
public Icon Icon {
|
|
|
|
get { return icon; }
|
|
set { icon = value; }
|
|
}
|
|
public int MinWidth {
|
|
|
|
get { return minWidth; }
|
|
set { minWidth = value; }
|
|
}
|
|
public StatusBar Parent {
|
|
|
|
get { return parent; }
|
|
set { parent = value; }
|
|
}
|
|
public StatusBarPanelStyle Style {
|
|
|
|
get { return style; }
|
|
set { style = value; }
|
|
}
|
|
public string Text {
|
|
|
|
get { return text; }
|
|
set { text = value; }
|
|
}
|
|
public string ToolTipText {
|
|
|
|
get { return toolTipText; }
|
|
set { toolTipText = value; }
|
|
}
|
|
public int Width {
|
|
|
|
get { return width; }
|
|
set { width = value; }
|
|
}
|
|
}
|
|
}
|