Skip to content

CommandBarGallery Object Members

See also: - CommandBarGallery Overview - CommandBarGalleryItem Object - CommandBarGalleryItems Object - CreateGalleryItems Method - AddItem Method - AddLabel Method - CommandBar Property - ShowLabels Property - ShowScrollBar Property - Width Property


Public Methods

  • Clone — Creates a clone of the control and returns it as a new CommandBarControl object. See also: CommandBarControl.
  • Copy — Copies the gallery control to a specified menu bar, ribbon bar, or toolbar at the indicated position.
  • Delete — Deletes the gallery control.
  • EnsureVisible — Ensures that an item in the gallery is visible.
  • GetRect — Returns the top, left, right, and bottom coordinates of the gallery control.
  • Reset — Resets the icon, caption, and style of the control. See: XTPButtonStyle_EN.
  • SetFocus — Sets the focus to the gallery control.
  • SetIconSize — Sets the icon size for items in the gallery.
  • SetItemsMargin — Sets the margin/padding placed around the items in the gallery.

Public Properties

  • Action — CommandBarAction object associated with this control. See: CommandBarAction.
  • BeginGroup — Specifies whether to place a separator before the gallery control.
  • Caption — Gets/sets the caption of the gallery.
  • Category — Gets/sets the category of the gallery control.
  • CheckedItem — Specifies the index of an item in the gallery's items collection that should be marked as "checked".
  • CloseSubMenuOnClick — Gets/sets whether the gallery will close immediately when the user clicks the gallery or an item while displayed as a popup.
  • CommandBar — Gets/Sets a popup CommandBar associated with the gallery. This also adds a popup button to the bottom of the scroll bar that the user can click to display the popup.
  • Controls — Gets the collection of controls which are the siblings of this gallery control.
  • CustomShortcutText — Gets/sets custom shortcut text displayed for the control.
  • DescriptionText — Gets/sets the text displayed in the status bar when the mouse is positioned over the gallery.
  • Enabled — Gets/sets whether the gallery is enabled.
  • EnableTransparency — Gets/sets whether transparency is enabled for the gallery control.
  • ExecuteOnPressInterval — Specifies the number of milliseconds between calls to the Execute event while the mouse is pressed on the control.
  • Height — Gets/sets the height of the gallery.
  • HideFlags — Retrieves the HideFlags of the control.
  • Id — Gets/sets the Id of the control.
  • Index — Returns the index of the gallery control within the parent command bar / ribbon bar's collection of controls.
  • Items — Collection of CommandBarGalleryItem objects that have been added to this gallery.
  • KeyboardTip — Specifies the keyboard tip 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 gallery control. Equivalent to the "Tag" property.
  • Parent — Returns a reference to the parent command bar or ribbon bar control.
  • Resizable — Gets/sets whether the popup gallery can be resized by the user.
  • RibbonGroup — Returns a reference to the RibbonGroup control that this gallery has been added to.
  • ScrollPos — Gets/sets the scroll bar position of the gallery when all items are not currently visible.
  • SelectedItem — Gets/sets the currently selected CommandBarGalleryItem in the gallery.
  • ShowBorders — Specifies whether to display a border around the entire gallery.
  • ShowLabels — Specifies whether label controls will be displayed in the gallery.
  • ShowScrollBar — Specifies whether a scroll bar is displayed for the gallery.
  • 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.
  • Visible — Gets/sets whether the gallery is visible.
  • Width — Gets/sets the width of the gallery.

See also: - CommandBarGallery Overview - CommandBarGalleryItem Object - CommandBarGalleryItems Object - CreateGalleryItems Method - AddItem Method - AddLabel Method - CommandBar Property - ShowLabels Property - ShowScrollBar Property - Width Property


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