Table of Contents

Method InvokeCommand

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

InvokeCommand<TBindingType>(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)

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.