Autodesk Vault ProfessionalVault API

GetContextMenuArgs Class

Autodesk.DataManagement.Client.Framework.Vault.FormsAutodesk.DataManagement.Client.Framework.Vault.Forms.Currency

Event args that are fired when a workflow is requesting a context menu for a particular entity. The responder to this event should populate the MenuContents property in order to supply a custom menu.

Syntax

public class GetContextMenuArgs : System.EventArgs 
Public Class GetContextMenuArgs
   Inherits System.EventArgs

Constructors

NameDescription
GetContextMenuArgs

Properties

NameDescription
ClickedEntityGets the entity that was clicked on. This may or may not be one of the selected entities
InSelectionGets whether or not the click that triggered the context menu was a click on an object that was already selected
InWhiteSpaceGets whether or not the click that triggered the context menu was a click in white space or a part of the control content
MenuContentsGets or sets the current contents of the context menu. MenuItems can be added or removed from this list to customize the context menu.
MouseLocationGets the mouse coordinates of where the right-click occurred
PropDefGets the property associated with the column that was clicked on. This can be null
ReplacementMenuGets or sets a replacement menu. If a replacement menu is specified, it will be used instead of MenuContents. The replacement menu is only used if the event is not handled.
SelectedEntitiesGets the list of selected entities.
TagCustom information to include with the context menu. Used internally by the Autodesk.DataManagement.Client.Framework.Vault.Forms.Controls.VaultTreeControl.

Methods

NameDescription
AddMenuAdds a new menu item to the end of the current list of menu items
InsertMenuAdds a new menu item to the top of the current list of menu items

Fields

NameDescription
HandledGets or sets whether this event has been handled. If false, then the object that fired the event will perform the default functionality

Returned By

Where you get a GetContextMenuArgs — members that return one.

Inheritance Hierarchy

  • System.Object
  • System.EventArgs
  • Autodesk.DataManagement.Client.Framework.Vault.Forms.Currency.GetContextMenuArgs

See Also