Method ReplaceCommands | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
ReplaceCommands(TEvent, params Command[])
Replaces the commands already bound to a combination of TEvent
.
public void ReplaceCommands(TEvent eventArgs, params Command[] newCommands)
Parameters
eventArgs
TEvent
The combination of TEvent
bound to the command to be replaced.
newCommands
Command[]
The set of commands to replace the old ones with.
Remarks
If the of TEvent
is not already bound, it will be added.