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.
| Name | Value | Description |
|---|---|---|
CommandState_Undefined | 0 | Undefined value. |
CommandState_Active | 1 | The command is visible and enabled. |
CommandState_Hidden | 3 | The 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