Skip to content

CommandBarControlCustom Object Members

See Also


Public Methods

  • Clone — Creates a clone of the control and returns it as a new CommandBarControl object.
  • Copy — Copies the control to a specified menu bar or toolbar in the indicated position.
  • Delete — Deletes the control.
  • Execute — Executes the control.
  • GetRect — Returns the top, left, right, and bottom coordinates of the button.
  • Reset — Resets the icon, caption, and style of the control.
  • SetFocus — Sets the focus to a given control.
  • SetIconSize — Sets the icon size of the control.
  • SetSize — Sets the size of a custom control.

Public Properties

  • Action — Gets the CommandBarAction object associated with this control.
  • BeginGroup — Gets/Sets a boolean value indicating whether the control is a separator and thus begins a new group.
  • Caption — Gets/Sets the caption of the control.
  • Category — Gets/Sets the category of the control.
  • Checked — Gets/Sets a boolean value indicating whether the control is checked.
  • CloseSubMenuOnClick — Gets/Sets whether the popup menu will close as soon as the user makes a mouse click on the menu.
  • Controls — Gets the collection of controls that are the siblings of this control.
  • CustomShortcutText — Gets/Sets the custom shortcut text for the control.
  • DefaultItem — Retrieves whether or not the control is the default menu item.
  • DescriptionText — Gets/Sets the description text of the control.
  • Enabled — Gets/Sets a boolean value indicating whether the control is enabled.
  • ExecuteOnPressInterval — Specifies the number of milliseconds between calls to the Execute event while the mouse is pressed on the control.
  • Flags — Retrieves the special flags for the control.
  • Handle — Gets the window handle that the control is bound to.
  • Height — Gets/Sets the height of the control.
  • HideFlags — Retrieves the HideFlags of the control.
  • IconId — Gets/Sets the control icon's identifier.
  • Id — Gets/Sets the numeric identifier of the control.
  • Index — Gets the index of the control.
  • KeyboardTip — Specifies the KeyboardTip that will be displayed when the Alt key is pressed and ShowKeyboardTips is true.
  • Left — Returns the distance between the left edge of the control and the left edge of its container.
  • Parameter — Gets/Sets the parameter of the control. This is the equivalent to the "Tag" property and can store any extra data needed by your program.
  • Parent — Gets the parent CommandBar of the control.
  • RibbonGroup — Reference to the RibbonGroup object the control belongs to.
  • ShortcutText — Gets/Sets the shortcut text of the control. (Obsolete)
  • Style — Gets/Sets the style of the control.
  • TooltipText — Gets/Sets the tooltip text for the control.
  • Top — Returns the distance between the top edge of the control and the top edge of its container.
  • Type — Gets the type of the control.
  • VerticalOptions — Specifies how a CommandBarControlCustom should look if the parent toolbar is docked vertically.
  • Visible — Gets/Sets a boolean value indicating whether the control is visible.
  • Width — Gets/Sets the width of the control.

See Also


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