Skip to main content


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

MFiles.CommandState.CommandState_Undefined0Undefined value.
MFiles.CommandState.CommandState_Active1The command is visible and enabled.
MFiles.CommandState.CommandState_Inactive2The command is visible but not enabled (for example grayed).
MFiles.CommandState.CommandState_Hidden3The command is not visible.