Table of Contents

Method InvokeCommand

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

InvokeCommand(Command, Key?, KeyBinding?)

Invokes the specified command.

public bool? InvokeCommand(Command command, Key? key = null, KeyBinding? keyBinding = null)

Parameters

command Command

The command to invoke.

key Key

The key that caused the command to be invoked, if any.

keyBinding KeyBinding?

Returns

bool?

null if no command was found. true if the command was invoked, and it handled the command. false if the command was invoked, and it did not handle the command.