Back to Devexpress

PopupMenu Members

windowsforms-devexpress-dot-xtrabars-dot-popupmenu-dot-underscore-members.md

latest19.8 KB
Original Source

PopupMenu Members

A popup menu managed by a BarManager or RibbonControl. It can be used in controls (such as GridControl, TreeList, etc.) as a custom popup menu.

Constructors

NameDescription
PopupMenu()Initializes a new PopupMenu class instance.
PopupMenu(BarManager)Initializes a new instance of the PopupMenu class with the specified BarManager.
PopupMenu(IContainer)Initializes a new instance of the PopupMenu class with the specified container.

Properties

NameDescription
ActivatorSpecifies an object which activates the PopupMenu.
AllowRibbonQATMenuGets or sets whether right-clicking the PopupMenu’s item invokes a context menu containing the Ribbon related commands. This option is in effect when the PopupMenu is displayed within the RibbonControl.
AutoFillEditorWidthGets or sets whether BarEditItem editors should stretch horizontally, automatically occupying available free space within this menu.
CanRaiseEvents protectedGets a value indicating whether the component can raise an event. Inherited from Component.
CanShowPopupIndicates whether the current PopupMenuBase object can be displayed. Inherited from PopupMenuBase.
ContainerGets the IContainer that contains the Component. Inherited from Component.
CustomControllerThis member supports the internal infrastructure, and is not intended to be used directly from your code.
DesignMode protectedGets a value that indicates whether the Component is currently in design mode. Inherited from Component.
DrawMenuRightIndentGets or sets whether the current pop-up menu displays the right margin.
DrawMenuSideStripGets or sets whether the current pop-up menu displays the side strip for item glyphs.
Events protectedGets the list of event handlers that are attached to this Component. Inherited from Component.
ItemLinksProvides access to links owned and displayed by the popup menu. Inherited from PopupMenuBase.
LinksPersistInfoGets or sets a value that stores information on the links added to the current PopupMenuBase object at design time. Inherited from PopupMenuBase.
ManagerSpecifies the BarManager responsible for managing the PopupMenuBase object. Inherited from PopupMenuBase.
MenuAppearanceProvides access to style settings for links owned by the popup menu.
MenuBarWidthGets or sets the width of the bar displayed to the left of the popup menu’s content.
MenuCaptionGets or sets the menu’s caption.
MenuDrawModeGets or sets the menu’s display mode. Inherited from PopupMenuBase.
MinWidthGets or sets the popup menu’s minimum width.
MultiColumnGets or sets whether the menu items are displayed across multiple columns.
NameGets or sets the name of the popup menu component. Inherited from PopupMenuBase.
OpenedIndicates that the popup menu is open.
OptionsMultiColumnProvides access to the settings of the multicolumn mode of displaying items in the current pop-up menu.
RibbonSpecifies the RibbonControl responsible for managing the PopupMenuBase object. Inherited from PopupMenuBase.
RibbonToolbarGets or sets a toolbar associated with a popup menu.
ShowCaptionGets or sets whether the menu’s header is visible.
ShowNavigationHeaderGets or sets whether the navigation header that provides navigation through the menu hierarchy, is shown at the top of the current PopupMenu. This property is in effect when the current PopupMenu is displayed in the Inplace popup show mode.
SiteGets or sets the ISite of the Component. Inherited from Component.
TagGets or sets user-defined data associated with the control. Inherited from PopupMenuBase.
VisibleIndicates whether the current PopupMenu is visible.

Methods

NameDescription
AddItem(BarItem)Adds a specific item link to the current PopupMenuBase. Inherited from PopupMenuBase.
AddItems(BarItem[])Adds an array of item links to the current PopupMenuBase. Inherited from PopupMenuBase.
BeginInit()Starts the runtime initialization of the PopupMenuBase object. Inherited from PopupMenuBase.
BeginUpdate()Locks the PopupMenuBase object by preventing visual updates of the object and its elements until the EndUpdate method is called. Inherited from PopupMenuBase.
ClearLinks()Removes all links from the PopupMenuBase object. Inherited from PopupMenuBase.
CreateObjRef(Type)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Customize()Displays the customization dialog for the current PopupMenuBase object. Inherited from PopupMenuBase.
Dispose()Releases all resources used by the Component. Inherited from Component.
EndInit()Ends the runtime initialization of the PopupMenuBase object. Inherited from PopupMenuBase.
EndUpdate()Unlocks the PopupMenuBase object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from PopupMenuBase.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetLifetimeService()Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetPopup()Returns the popup with the menu item that owns this PopupMenu.
GetService(Type) protectedReturns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType()Gets the Type of the current instance. Inherited from Object.
HidePopup()Hides the current PopupMenu.
InitializeLifetimeService()Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
InsertItem(BarItemLink, BarItem)Inserts a new item link in the item link collection of the current PopupMenuBase object before a specific collection element. Inherited from PopupMenuBase.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protectedCreates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
Merge(PopupMenu)Merges the specified menu’s items with the current menu’s items. Inherited from PopupMenuBase.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RemoveLink(BarItemLink)Removes a specific item link from the PopupMenuBase.ItemLinks collection. Inherited from PopupMenuBase.
ShowPopup(BarManager, Point, PopupControl)Displays a child PopupMenu object at the specific point.
ShowPopup(BarManager, Point)Displays the context menu at the specified position.
ShowPopup(Point, Object)Displays the context menu at the specified position.
ShowPopup(Point)Displays the current PopupMenu at the specified screen point.
ShowPopupCore(BarManager, Point, IPopup)This member supports the internal infrastructure, and is not intended to be used directly from your code.
ToString()Returns a String containing the name of the Component, if any. This method should not be overridden. Inherited from Component.
UnMerge()Restores the original layout of the menu after a previous merge operation. Inherited from PopupMenuBase.

Events

NameDescription
BeforePopupAllows you to customize the popup menu before it is displayed onscreen. Inherited from PopupMenuBase.
CloseUpOccurs when the PopupMenuBase object is hidden. Inherited from PopupMenuBase.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
LinkAddedFires immediately after a link has been added to the popup menu. Inherited from PopupMenuBase.
LinkDeletedFires immediately after a link has been removed from the popup menu. Inherited from PopupMenuBase.
PaintMenuBarEnables you to paint the content of the bar displayed to the left of the popup menu.
PopupOccurs when the PopupMenuBase object appears onscreen. Inherited from PopupMenuBase.

See Also

PopupMenu Class

DevExpress.XtraBars Namespace