Skip to main content

CommandState

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.

NameValueDescription
CommandState_Undefined0Undefined value.
CommandState_Active1The command is visible and enabled.
CommandState_Hidden3The command is not visible.

Runtime Access

This enumeration is available at runtime on the MFiles global object. Access enum values using MFiles.CommandState.<value>.

Example:

const value = MFiles.CommandState.CommandState_Undefined;

See also: MFiles Global Object