Command.ToolTip
property · Command · cAlgo.API
DesktopCLICloud
Gets / sets command tooltips.
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
string ToolTip {get; set;}
command.ToolTip: str
Returns string
Examples
var command = Commands.Add(CommandType.ChartContainerToolbar, args => Print("Command executed"));
command.ToolTip = "Show account summary";
Print("Command tooltip: {0}", command.ToolTip);
from System import Action
command = api.Commands.Add(CommandType.ChartContainerToolbar, Action[CommandArgs](lambda args: api.Print("Command executed")))
command.ToolTip = "Show account summary"
api.Print(f"Command tooltip: {command.ToolTip}")