Skip to content

Command.IsEnabled

property · Command · cAlgo.API

DesktopCLICloud

Gets / sets if command is enabled or not.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

bool IsEnabled {get; set;}
command.IsEnabled: bool

Returns bool

Examples

foreach (var command in Commands)
    command.IsEnabled = false;
for command in api.Commands:
    command.IsEnabled = False