Skip to main content
A newer version of this page is available. .
Bar

PopupMenuBase Members

The base class for popup menus.

Constructors

Name Description
PopupMenuBase() Initializes a new instance of the PopupMenuBase class.
PopupMenuBase(BarManager) Initializes a new instance of the PopupMenuBase class with the specified BarManager.
PopupMenuBase(IContainer) Initializes a new instance of the PopupMenuBase class with the specified container.

Properties

Name Description
CanRaiseEvents protected Gets a value indicating whether the component can raise an event. Inherited from Component.
CanShowPopup Indicates whether the current PopupMenuBase object can be displayed.
Container Gets the IContainer that contains the Component. Inherited from Component.
DesignMode protected Gets a value that indicates whether the Component is currently in design mode. Inherited from Component.
Events protected Gets the list of event handlers that are attached to this Component. Inherited from Component.
ItemLinks Provides access to links owned and displayed by the popup menu.
LinksPersistInfo Gets or sets a value that stores information on the links added to the current PopupMenuBase object at design time.
Manager Specifies the BarManager responsible for managing the PopupMenuBase object.
MenuDrawMode Gets or sets the menu’s display mode.
Name Gets or sets the name of the popup menu component.
Ribbon Specifies the RibbonControl responsible for managing the PopupMenuBase object.
Site Gets or sets the ISite of the Component. Inherited from Component.
Tag Gets or sets user-defined data associated with the control.
Visible Indicates whether the current PopupMenuBase object is visible.

Methods

Name Description
AddItem(BarItem) Adds a specific item link to the current PopupMenuBase.
AddItems(BarItem[]) Adds an array of item links to the current PopupMenuBase.
BeginInit() Starts the runtime initialization of the PopupMenuBase object.
BeginUpdate() Locks the PopupMenuBase object by preventing visual updates of the object and its elements until the EndUpdate method is called.
ClearLinks() Removes all links from the PopupMenuBase object.
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.
Dispose() Releases all resources used by the Component. Inherited from Component.
EndInit() Ends the runtime initialization of the PopupMenuBase object.
EndUpdate() Unlocks the PopupMenuBase object after a call to the BeginUpdate method and causes an immediate visual update.
Equals(Object, Object) static Determines 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.
GetService(Type) protected Returns 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 PopupMenuBase object.
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.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates 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.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RemoveLink(BarItemLink) Removes a specific item link from the PopupMenuBase.ItemLinks collection.
ShowPopup(BarManager, Point, PopupControl) Displays a child PopupMenuBase object at the specific point.
ShowPopup(BarManager, Point) Displays the current pop-up associated with a BarManager at a specific point.
ShowPopup(Point, Object) Displays the current pop-up menu at a specific point.
ShowPopup(Point) Displays the current pop-up menu at a specific 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.

Events

Name Description
BeforePopup Allows you to customize the popup menu before it is displayed onscreen.
CloseUp Occurs when the PopupMenuBase object is hidden.
Disposed Occurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
LinkAdded Fires immediately after a link has been added to the popup menu.
LinkDeleted Fires immediately after a link has been removed from the popup menu.
Popup Occurs when the PopupMenuBase object appears onscreen.
See Also