Method InvokeCommand | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
InvokeCommand(Command, TBindingType)
Invokes the specified command.
public bool? InvokeCommand<TBindingType>(Command command, TBindingType binding)
Parameters
command
Command
The command to invoke.
binding
TBindingType
The binding that caused the invocation, if any. This will be passed as context with the command.
Returns
bool?
null if no command was found; input processing should continue.false if the command was invoked and was not handled (or cancelled); input processing should continue.true if the command was invoked the command was handled (or cancelled); input processing should stop.
Type Parameters
TBindingType
InvokeCommand(Command, ICommandContext?)
Invokes the specified command.
public bool? InvokeCommand(Command command, ICommandContext? ctx)
Parameters
command
Command
The command to invoke.
ctx
ICommandContext
The context to pass with the command.
Returns
bool?
null if no command was found; input processing should continue.false if the command was invoked and was not handled (or cancelled); input processing should continue.true if the command was invoked the command was handled (or cancelled); input processing should stop.
InvokeCommand(Command)
Invokes the specified command without context.
public bool? InvokeCommand(Command command)
Parameters
command
Command
The command to invoke.
Returns
bool?
null if no command was found; input processing should continue.false if the command was invoked and was not handled (or cancelled); input processing should continue.true if the command was invoked the command was handled (or cancelled); input processing should stop.