Class CommandBar
Represents the contents of a ToolBarControl
Implements
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public sealed class CommandBar : ICommandBarControlContainer
Constructors
CommandBar(String)
Initializes a new instance of the CommandBar class.
Declaration
public CommandBar(string barId)
Parameters
Type | Name | Description |
---|---|---|
String | barId | The identity of the bar. If the caption is not set, the ID will be used. Must be unique. |
CommandBar(String, String)
Initializes a new instance of the CommandBar class.
Declaration
public CommandBar(string barId, string caption)
Parameters
Type | Name | Description |
---|---|---|
String | barId | The identity of the bar. Must be unique. |
String | caption | The caption text of the command bar. The caption text should be unique. |
Properties
Caption
The caption text of the command bar.
Declaration
public string Caption { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Currently not used.
Controls
Gets a CommandBarControlCollection object that represents all the controls on this CommandBar object.
Declaration
public CommandBarControlCollection Controls { get; }
Property Value
Type | Description |
---|---|
CommandBarControlCollection |
Enabled
Gets or sets a value indicating whether the controls on the CommandBar can be enabled or not
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Id
Returns a string identifying this CommandBar. Two CommandBars can not have the same Id.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |