Struct CommandContext | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Provides context for a Command invocation.
public record struct CommandContext<TBinding> : ICommandContext, IEquatable<CommandContext<TBinding>>
Type Parameters
TBinding
Implements
Inherited Members
Constructors
CommandContext(Command, View?, TBinding?)
Initializes a new instance with the specified Command,
Properties
The keyboard or mouse minding that was used to invoke the Command, if any.
The Command that is being invoked.
The View that was the source of the command invocation, if any. (e.g. the view the user clicked on or the view that had focus when a key was pressed).