Skip to content

CommandBarControl Object Members

See Also

CommandBarControl Overview

| See Also | | Command Bars ActiveX Control v24.0 | | | | | | | | |---|---|---|---|---|---|---|---|---|

CommandBarControl Object Members

Public Methods

Method Description
Public MethodClone Creates a clone of the control and returns it as a new object.
Public MethodCopy Copies the control to a specified menu bar or toolbar in the indicated position.
Public MethodDelete Deletes the control.
Public MethodExecute Executes the control.
Public MethodGetRect Returns the top, left, right, and bottom coordinates of the button.
Public MethodReset Resets the icon, caption, and style of the control.
Public MethodSetFocus Sets the focus to a given control.
Public MethodSetIconSize

Public Properties

Property Description
Public PropertyAction Gets/Sets the CommandBarAction object associated with this control.
Public PropertyBeginGroup Gets/Sets a boolean value indicating whether the control is a separator and thus begins a new group.
Public PropertyCaption Gets/Sets the caption of the control.
Public PropertyCategory Gets/Sets the category of the control.
Public PropertyChecked Gets/Sets a boolean value indicating whether the control is checked.
Public PropertyCloseSubMenuOnClick Gets/Sets whether the popup menu will close as soon as the user makes a mouse click on the menu.
Public PropertyCommandBar Call this member to set/get the child command bar.
Public PropertyControls Gets the collection of controls which are the siblings of this control.
Public PropertyCustomShortcutText Retrieves whether or not the control is the default menu item.
Public PropertyDefaultItem Sets/Gets the description text of the control.
Public PropertyDescriptionText Gets/Sets a boolean value indicating whether the control is enabled.
Public PropertyEnabled Specifies the number of milliseconds between calls to the Execute event while the mouse is pressed on the control.
Public PropertyExecuteOnPressInterval Retrieves the special flags for the control.
Public PropertyFlags Gets/Sets the height of the control.
Public PropertyHeight Retrieves the HideFlags of the control.
Public PropertyHideFlags Gets/Sets the control icon's identifier.
Public PropertyIconId Gets/Sets the numeric identifier of the control.
Public PropertyId Gets the index of the control.
Public PropertyIndex Specifies the KeyboardTip that will be displayed when the Alt key is pressed and ShowKeyboardTips is true.
Public PropertyKeyboardTip Returns the distance between the left edge of the control and the left edge of its container.
Public PropertyLeft Gets the parent CommandBar of the control.
Public PropertyParameter Gets/Sets the parameter of the control. This is the equivalent to the "Tag" property. You can store any extra data needed for your program.
Public PropertyParent Reference to the RibbonGroup object the control belongs to.
Public PropertyRibbonGroup Gets/Sets the shortcut text of the control. (Obsolete)
Public PropertyShortcutText Gets/Sets the style of the control.
Public PropertyStyle Gets/Sets the tooltip text for the control.
Public PropertyTooltipText Returns the distance between the top edge of the control and the top edge of its container.
Public PropertyTop Gets the type of the control.
Public PropertyType Gets/Sets a boolean value indicating whether the control is visible.
Public PropertyVisible Gets/Sets the width of the control.
Public PropertyWidth

See Also

CommandBarControl Overview


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