Class StatusBarPane
Represents a single pane in the status bar
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class StatusBarPane
Constructors
StatusBarPane()
Creates a new status bar pane
Declaration
public StatusBarPane()
StatusBarPane(String)
Creates a new status bar pane
Declaration
public StatusBarPane(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Pane text |
StatusBarPane(Control)
Creates a new status bar pane containing a control
Declaration
public StatusBarPane(Control control)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control that will be used as the pane's content |
Properties
AccessibleName
Gets or sets the name of the pane used by accessibility applications
Declaration
public string AccessibleName { get; set; }
Property Value
Type | Description |
---|---|
String |
AutoSize
Gets or sets if the pane should adapt its width to make room for its text
Declaration
public bool AutoSize { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
AutoSizeMode
Gets or sets how the pane should adapt its width to make room for its text
Declaration
public AutoSizeMode AutoSizeMode { get; set; }
Property Value
Type | Description |
---|---|
AutoSizeMode |
BackColor
Gets or sets the pane's background color
Declaration
public Color BackColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
Ignored if the Control property is set to a non-null value
Control
Gets or sets the control contained in the StatusBarPane.
Declaration
public Control Control { get; set; }
Property Value
Type | Description |
---|---|
Control |
ControlOffset
Gets or sets the control position relative to the upper left of the StatusBarPane. Ignored if the Control property is null.
Declaration
public Point ControlOffset { get; set; }
Property Value
Type | Description |
---|---|
Point |
DefaultTabVisibility
Gets or sets the visibility of this pane for those ribbon tabs where SetTabVisibility() has not been called.
Declaration
public bool DefaultTabVisibility { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Enabled
This property is obsolete and may be removed in a future version.
Declaration
olete("No longer supported")]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ForeColor
Gets or sets the pane's foreground (text) color
Declaration
public Color ForeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
Ignored if the Control property is set to a non-null value
ShowBorder
Gets or sets if the border around the pane should be visible or not
Declaration
public bool ShowBorder { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Text
Gets or sets the text shown in the StatusBarPane.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Ignored if the Control property is set to a non-null value
TextAlignment
Gets or sets the horizontal alignment of the text.
Declaration
public HorizontalAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment |
ToolTip
Gets or sets the tooltip text for this pane
Declaration
public string ToolTip { get; set; }
Property Value
Type | Description |
---|---|
String |
Width
Gets or sets the pane's width in pixels
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
GetTabVisibility(RibbonTab)
Returns the visibility of this pane when the specified tab is active
Declaration
public bool GetTabVisibility(RibbonTab tab)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | tab |
Returns
Type | Description |
---|---|
Boolean |
SetTabVisibility(RibbonTab, Boolean)
Sets the visibility of this pane when the specified tab is active
Declaration
public void SetTabVisibility(RibbonTab tab, bool visible)
Parameters
Type | Name | Description |
---|---|---|
RibbonTab | tab | |
Boolean | visible |
SetTabVisibility(String, Boolean)
Sets the visibility of this pane when the specified tab is active
Declaration
public void SetTabVisibility(string tabId, bool visible)
Parameters
Type | Name | Description |
---|---|---|
String | tabId | |
Boolean | visible |
Events
Click
Raised when the user clicks on the pane
Declaration
public event EventHandler Click
Event Type
Type | Description |
---|---|
EventHandler |
DoubleClick
Raised when the user double-clicks on the pane
Declaration
public event EventHandler DoubleClick
Event Type
Type | Description |
---|---|
EventHandler |