M-Files UI Extensibility Framework
AddCustomCommandToMenu Method
ICommands Interface : AddCustomCommandToMenu Method
The command identifier. Use CreateCustomCommand Method to create a command.
Detailed menu location where to add the existing custom command. Possible locations are enumerated.
The order indication for the command. Smallest priority goes top.
Description
Adds existing custom command to the specified context menu location.
Syntax
Visual Basic
Public Sub AddCustomCommandToMenu( _
   ByVal customCommand As Long, _
   ByVal location As MenuLocation, _
   ByVal orderPriority As Long _
) 
Parameters
customCommand
The command identifier. Use CreateCustomCommand Method to create a command.
location
ValueDescription
MenuLocation_ContextMenu_AfterWindowsCommands 
MenuLocation_ContextMenu_BeforeProperties 
MenuLocation_ContextMenu_BeforeWindowsCommands 
MenuLocation_ContextMenu_Bottom 
MenuLocation_ContextMenu_CollectionMembersSpecific 
MenuLocation_ContextMenu_DefaultCommand 
MenuLocation_ContextMenu_Deletion 
MenuLocation_ContextMenu_DocumentConversions 
MenuLocation_ContextMenu_Edit 
MenuLocation_ContextMenu_FileCreation 
MenuLocation_ContextMenu_FolderSpecific 
MenuLocation_ContextMenu_HistorySpecific 
MenuLocation_ContextMenu_Misc1_Bottom 
MenuLocation_ContextMenu_Misc1_Middle 
MenuLocation_ContextMenu_Misc1_Top 
MenuLocation_ContextMenu_Misc2_Bottom 
MenuLocation_ContextMenu_Misc2_Middle 
MenuLocation_ContextMenu_Misc2_Top 
MenuLocation_ContextMenu_ObjectCreation 
MenuLocation_ContextMenu_ObjectOperations 
MenuLocation_ContextMenu_PropertyFolderAvailable in M-Files 10.0.3911.3 and newer.
MenuLocation_ContextMenu_RelationshipsSpecific 
MenuLocation_ContextMenu_SingleFolderSpecific 
MenuLocation_ContextMenu_Top 
MenuLocation_ContextMenu_ViewVisibility 
Detailed menu location where to add the existing custom command. Possible locations are enumerated.
orderPriority
The order indication for the command. Smallest priority goes top.
Remarks
Supported in M-Files 9.0.3372.6 and newer.
See Also

ICommands Interface  | ICommands Members