Method Add | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Add(TEvent, TBinding)
Adds a TEvent
bound to TBinding
to the collection.
public void Add(TEvent eventArgs, TBinding binding)
Parameters
eventArgs
TEvent
binding
TBinding
Add(TEvent, params Command[])
Adds a new TEvent
that will trigger the commands in commands
.
If the TEvent
is already bound to a different set of Commands it will be reboundcommands
.
public void Add(TEvent eventArgs, params Command[] commands)
Parameters
eventArgs
TEvent
The event to check.
commands
Command[]
The command to invoked on the View when eventArgs
is received. When multiple commands are provided,they will be applied in sequence. The bound eventArgs
event will be consumed if any took effect.