Common Application Framework

MenuTool Members

MenuTool overview

Public Instance Properties

AllowTearaway Gets or sets whether the menu can be torn off
AutoUpdate Gets or sets whether the Image, Tooltip and Command are automaticaly updated.
Caption Gets or sets the tool caption
Category Gets or sets the tools category
Checked Gets or sets whether the tool is in the checked state.
Command Gets the command object which was associated with the tool when it was created.
DropDownArrowStyle Returns or sets the style of the dropdown arrow for the popup menu.
Enabled Gets or sets the enabled state of the tool.
Image Gets or sets the image displayed on the tool
IsContextMenu Gets or sets whether the menu is a context menu
IsFirstInGroup Gets or sets a flag which indicated whether an instance tool is the first in a tool group. A separator will be displayed before a tool if this property is set to true.
Key The Key of the tool in the RootToolsCollection
OptionSetKey Gets or sets the OptionSet key for the tool. Setting the key assigns the tool to the CommandBarManagers OptionSet which has this key.
PopupStyle Gets or sets the popup style of the menu (Menu or CommandBar)
Shortcut Gets or sets the shortcut associated with a tool.
Tag Gets or sets the tag property which can be used to logically attach another object or value to a tool.
Tools Gets the ToolsCollection containing the tools to display in the popup menu.
Tooltip Gets or sets the tools tooltip
Value Gets or sets the value of the tool.
Visible Gets or sets the visibility of the tool.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ShowPopupOverloaded. Displays the MenuTool as a context popup with given context at the current mouse position.
ToString (inherited from Object) Returns a String that represents the current Object.

Public Instance Events

AfterCloseup Occurs after the menu is displayed
BeforePopup Occurs before the menu is displayed
ToolClick Occurs when the tool is clicked

See Also

MenuTool Class | Aveva.ApplicationFramework.Presentation Namespace