Class CommandBarCustomControl
Represents a toolbar or menu item that contains a custom Windows Forms control
Inherited Members
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarCustomControl : CommandBarControl
Constructors
CommandBarCustomControl(String)
Creates a CommandBarCustomControl with a specific ID.
Declaration
public CommandBarCustomControl(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | Control ID |
Remarks
Prefix the ID with the name of your Add-In, to avoid conflicts.
See Also
CommandBarCustomControl(String, String, Control)
Creates a CommandBarCustomControl with a specific ID, caption and contained Control.
Declaration
public CommandBarCustomControl(string id, string caption, Control control)
Parameters
Type | Name | Description |
---|---|---|
String | id | Control ID |
String | caption | Caption |
Control | control | Hosted Control |
Remarks
The ID can be null, which creates a popup that will not be added to the UIEnvironment.CommandBarControls collection.
CommandBarCustomControl(String, Control)
Creates a CommandBarCustomControl with a specific ID, caption and contained Control.
Declaration
public CommandBarCustomControl(string id, Control control)
Parameters
Type | Name | Description |
---|---|---|
String | id | Control ID |
Control | control | Hosted Control |
Remarks
The ID can be null, which creates a popup that will not be added to the UIEnvironment.CommandBarControls collection.
Properties
Control
Gets or sets the contained Control
Declaration
public Control Control { get; set; }
Property Value
Type | Description |
---|---|
Control |
Enabled
True if this control is enabled, false otherwise
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
FromID(String)
Returns the CommandBarCustomControl that has the specified ID, or null if none exists.
Declaration
public static CommandBarCustomControl FromID(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | ID to find control for |
Returns
Type | Description |
---|---|
CommandBarCustomControl | The CommandBarCustomControl with the specified ID |
Remarks
This is the same as UIEnvironment.CommandBarControls[id] as CommandBarCustomControl