Skip to content

CommandType

enum cAlgo.API

DesktopCLICloud

Represents the predefined types of plugin commands.

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

public enum CommandType

Namespace: cAlgo.API · Group: Commands

Examples

var command = Commands.Add(CommandType.ChartContainerToolbar, args => Print("Toolbar command executed"));
Print("Command type: {0}", command.Type);
from System import Action
command = api.Commands.Add(CommandType.ChartContainerToolbar, Action[CommandArgs](lambda args: api.Print("Toolbar command executed")))
api.Print(f"Command type: {command.Type}")

Values

Name Value Description
ChartContainerToolbar 0 A command for chart group container toolbar.

See also