AddCommandContextMenu Method (IApplication) Send Feedback
See Also  Example
ContextMenuItem[out]
Context-sensitive menu item for CmdName
ApiUuid
UUID of the add-in or non add-in application
ItemType
Type of menu item as defined in dsMenuItemtype_e
ItemName
Name of the menu item
UserCmdID
User-defined command ID when ItemType is dsMenuItemType.dsMenuItemType_UserCommand
CmdName
Name of the command with which to associate this context-sensitive menu item
Adds a menu item to the specified command's context-sensitive menu.

Syntax

Visual Basic 
Function AddCommandContextMenu( _
   ByVal ApiUuid As System.String, _
   ByVal ItemType As dsMenuItemType_e, _
   ByVal ItemName As System.String, _
   ByVal UserCmdID As System.String, _
   ByVal CmdName As System.String _
) As ContextMenuItem
C# 
ContextMenuItem AddCommandContextMenu( 
   System.string ApiUuid,
   dsMenuItemType_e ItemType,
   System.string ItemName,
   System.string UserCmdID,
   System.string CmdName
)
JavaScript 
AddCommandContextMenu( 
   ApiUuid : String,
   ItemType : String,
   ItemName : String,
   UserCmdID : String,
   CmdName : String
) : dsContextMenuItem
COM native C++ 
HRESULT AddCommandContextMenu( 
   BSTR ApiUuid,
   dsMenuItemType_e ItemType,
   BSTR ItemName,
   BSTR UserCmdID,
   BSTR CmdName,
   IContextMenuItem** ContextMenuItem
) 
C++ 
DSRESULT AddCommandContextMenu( 
   const dsString& ApiUuid,
   dsMenuItemType_e ItemType,
   const dsString& ItemName,
   const dsString& UserCmdID,
   const dsString& CmdName,
   dsContextMenuItem** ContextMenuItem
) 

Parameters

ApiUuid
UUID of the add-in or non add-in application
ItemType
Type of menu item as defined in dsMenuItemtype_e
ItemName
Name of the menu item
UserCmdID
User-defined command ID when ItemType is dsMenuItemType.dsMenuItemType_UserCommand
CmdName
Name of the command with which to associate this context-sensitive menu item
ContextMenuItem[out] or Return Value
Context-sensitive menu item for CmdName

Example

Remarks

The context-sensitive menu appears when a user clicks the right-mouse button when the specified command is running.
 

See Also

Availability

DraftSight V1R5.0