Table of Contents

Struct CommandContext<TBinding>

Namespace
Terminal.Gui
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

Binding

The keyboard or mouse minding that was used to invoke the Command, if any.

Command

The Command that is being invoked.

Source

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).

See Also