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
Create Context-sensitive Menu Items (C#)
Create Context-sensitive Menu Items (VB.NET)
Create Context-sensitive Menu Items (VBA)
Create Context-sensitive Menu Items (VB.NET)
Create Context-sensitive Menu Items (VBA)
The context-sensitive menu appears when a user clicks the right-mouse button when the specified command is running.
IApplication Interface
IApplication Members
IApplication::AddDefaultContextMenu Method ()
IApplication::AddObjectContextMenu Method ()
IApplication::GetContextMenuItems Method ()
IContextMenuItem::Remove Method ()
IContextMenuItem::Enabled Property ()
IApplication Members
IApplication::AddDefaultContextMenu Method ()
IApplication::AddObjectContextMenu Method ()
IApplication::GetContextMenuItems Method ()
IContextMenuItem::Remove Method ()
IContextMenuItem::Enabled Property ()
DraftSight V1R5.0