Skip to content

CommandBarComboBox Object Members

See Also

See Also CommandBarComboBox Overview


Public Methods

Method Description
Public Method AddItem Adds a string to the control's combo box.
Public Method Clear Removes all items from the control's combo box.
Public Method Clone Creates a clone of the control and returns it as a new CommandBarControl object.
Public Method Copy Copies the control to a specified menu bar or toolbar in the indicated position.
Public Method Delete Deletes the combo box from the command bar.
Public Method Execute Executes the control.
Public Method FindItem Finds an item in the control's combo box.
Public Method GetRect Returns the top, left, right, and bottom coordinates of the control.
Public Method RemoveItem Removes an item from the control's combo box.
Public Method Reset Resets the icon, caption, and style of the control to default values.
Public Method SetFocus Sets the focus to the control.
Public Method SetIconSize Sets the size of the icon for the control.

Public Properties

Property Description
Public Property Action CommandBarAction object associated with this control.
Public Property AutoComplete Auto completion behavior for the combo box.
Public Property BeginGroup Gets/Sets a boolean indicating whether the control is a separator and thus begins a new group.
Public Property Caption Gets/Sets the caption of the control.
Public Property Category Gets/Sets the category of the control.
Public Property Checked Gets/Sets a boolean indicating whether the control is checked.
Public Property CloseSubMenuOnClick Gets/Sets whether the popup menu will close as soon as the user clicks the menu.
Public Property CommandBar CommandBar used as a popup menu for the combo box.
Public Property Controls Gets the collection of sibling controls.
Public Property CustomShortcutText Gets/Sets the custom shortcut text for the control.
Public Property DefaultItem Retrieves whether the control is the default menu item.
Public Property DescriptionText Gets/Sets the description text of the control.
Public Property DropDownItemCount Gets/Sets how many items to show in the combo box dropdown before a scrollbar appears.
Public Property DropDownListStyle Gets/Sets the drop-down style of the combo box.
Public Property DropDownWidth Gets/Sets the dropdown width of the control's combo.
Public Property EditHandle Stores a reference to the HANDLE (hWnd) of the combo box edit control.
Public Property EditHint Gets/Sets the grayed-out hint text displayed in the edit control.
Public Property EditIconId ID of the icon to be displayed in the edit control.
Public Property EditStyle Gets/Sets the style of the combo box edit control.
Public Property Enabled Gets/Sets a boolean indicating whether the control is enabled.
Public Property ExecuteOnPressInterval Number of milliseconds between calls to the Execute event while the mouse is pressed on the control.
Public Property Flags Retrieves the special flags for the control.
Public Property HasFocus Specifies whether the combo box control currently has focus.
Public Property Height Gets/Sets the height of the control.
Public Property HideFlags Retrieves the HideFlags of the control.
Public Property IconId Gets/Sets the control icon's identifier.
Public Property Id Gets/Sets the numeric identifier of the control.
Public Property Index Gets the index of the control.
Public Property ItemData Used to set or retrieve the Long value associated with a List item.
Public Property KeyboardTip Specifies the KeyboardTip displayed when the Alt key is pressed (when ShowKeyboardTips is true).
Public Property Left Returns the distance between the left edge of the control and the left edge of its container.
Public Property List Gets the combo box item at the specified index.
Public Property ListCount Gets the number of items in the combo box.
Public Property ListIconId Base ID for icons that are displayed in the dropdown list.
Public Property ListIndex Gets/Sets the index of the currently selected combo box item.
Public Property Parameter Gets/Sets the parameter of the control (equivalent to the "Tag" property). Use to store extra data for your program.
Public Property Parent Gets the parent CommandBar of the control.
Public Property RibbonGroup Reference to the RibbonGroup object the control belongs to.
Public Property ShellAutoComplete Enables or disables the system's shell auto-completion functionality.
Public Property ShortcutText Gets/Sets the shortcut text of the control. (Obsolete)
Public Property Style Gets/Sets the style of the control.
Public Property Text Gets or sets the currently selected item's text.
Public Property TextLimit Gets/Sets the maximum number of characters that can be entered.
Public Property ThemedItems Gets/Sets whether selected items in the combo box will use the current command bars theme.
Public Property TooltipText Gets/Sets the tooltip text for the control.
Public Property Top Returns the distance between the top edge of the control and the top edge of its container.
Public Property Type Gets the type of the control.
Public Property Visible Gets/Sets a boolean indicating whether the control is visible.
Public Property Width Gets/Sets the width of the control.

See Also

See Also CommandBarComboBox Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.