Class CommandBarComboBoxItem
Represent a single item in a CommandBarComboBox
Namespace: ABB.Robotics.RobotStudio.Environment
Assembly: ABB.Robotics.RobotStudio.Environment.dll
Syntax
public class CommandBarComboBoxItem
Constructors
CommandBarComboBoxItem(CommandBarButton)
CommandBarComboBoxItem constructor
Declaration
public CommandBarComboBoxItem(CommandBarButton clickButton)
Parameters
Type | Name | Description |
---|---|---|
CommandBarButton | clickButton | The button whose command will be executed when the item is selected. |
Remarks
The Tag and Text properties will be retrieved from clickButton
CommandBarComboBoxItem(String)
CommandBarComboBoxItem constructor
Declaration
public CommandBarComboBoxItem(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | Item text |
CommandBarComboBoxItem(String, Object)
CommandBarComboBoxItem constructor
Declaration
public CommandBarComboBoxItem(string text, object tag)
Parameters
Type | Name | Description |
---|---|---|
String | text | Item text |
Object | tag | Item tag |
Properties
ClickButton
The button whose command will be executed when the item is selected.
Declaration
public CommandBarButton ClickButton { get; set; }
Property Value
Type | Description |
---|---|
CommandBarButton |
Remarks
If ClickButton!=null, and the command is disabled, this item will not be included when the dropdown list is shown
Tag
Gets or sets an object that contains client-specific data related to the combo box
Declaration
public object Tag { get; set; }
Property Value
Type | Description |
---|---|
Object |
Text
Gets or sets the item text
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String |