Skip to main content


The CommandLocation enumeration specifies the location for the M-Files command when it is displayed in the user interface. This enumeration is used in conjunction with the SetCommandState method.

MFiles.CommandLocation.Undefined0Undefined value.
MFiles.CommandLocation.MainMenu1Specifies the command appearance in the main menus, such as top menu and command bars.
MFiles.CommandLocation.ContextMenu2Specifies the command appearance in the context menu.
MFiles.CommandLocation.TaskPane4Specifies the command appearance on task pane.
MFiles.CommandLocation.AppToolbar5Specifies the command appearance on application toolbar.
MFiles.CommandLocation.ActivityContextMenu6Specifies the command appearance in the activity context menu.
MFiles.CommandLocation.All268435455Refers to all command locations.