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
View SourceCommandBar(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
View SourceCaption
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 |
|---|---|
| bool |
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 |