ComboBox
Description:
This class represents a selection control with a drop-down list that can be shown or hidden by clicking the arrow.
This class represents a selection control with a drop-down list that can be shown or hidden by clicking the arrow.
Remarks:
The order of items shown in the ComboBox depends upon the order which they were added, unless the ComboBoxMembers have been assigned to groups. If the members have been assigned groups, they will be sorted to fall under their groups regardless of the order in which they were added. Use of this class is not supported in Revit Macros.
The order of items shown in the ComboBox depends upon the order which they were added, unless the ComboBoxMembers have been assigned to groups. If the members have been assigned groups, they will be sorted to fall under their groups regardless of the order in which they were added. Use of this class is not supported in Revit Macros.
public class ComboBox : RibbonItem
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| CurrentChanged | event | Subscribe to this event to be notified when the current item of the ComboBox is changed. | |
| DropDownClosed | event | Subscribe to this event to be notified when the drop-down of the ComboBox is closed. | |
| DropDownOpened | event | Subscribe to this event to be notified when the drop-down of the ComboBox is opened. |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AddItem(ComboBoxMemberData) | ComboBoxMember | Adds a new item to the ComboBox. | |
| AddItems(IList<ComboBoxMemberData>) | IList<ComboBoxMember> | Adds a new items to the ComboBox. | |
| AddSeparator() | None | Adds a separator to the drop-down list. | |
| GetItems() | IList<ComboBoxMember> | Gets the copy of a collection of the ComboBoxMembers assigned to the ComboBox. | |
| Equals(Object) | bool | Determines whether the specified is equal to the current . | RibbonItem |
| GetContextualHelp() | nullNothingnullptr | Gets the contextual help bound with this control. | RibbonItem |
| SetContextualHelp(ContextualHelp) | None | Sets the contextual help bound with this button. | RibbonItem |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Current | ComboBoxMember | Gets or sets the current checked ComboBox member of the ComboBox. | |
| Image | ImageSource | The image shown on the ComboBox. | |
| Enabled | bool | Gets or sets a value indicating whether the item is enabled. | RibbonItem |
| ItemText | string | Gets or sets the text displayed on the item. | RibbonItem |
| ItemType | RibbonItemType | Gets the item type. | RibbonItem |
| LongDescription | string | Long description of the command tooltip | RibbonItem |
| Name | string | The name of the item. | RibbonItem |
| ToolTipImage | ImageSource | The image to show as a part of the button extended tooltip | RibbonItem |
| ToolTip | string | The description that appears as a ToolTip for the item. | RibbonItem |
| Visible | bool | Gets or sets a value indicating whether the item is visible. | RibbonItem |