Table of Contents

Method WithCommand

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

WithCommand(Command)

Creates a new context with a different command, preserving all other fields.

public CommandContext WithCommand(Command command)

Parameters

command Command

The new command.

Returns

CommandContext

A new CommandContext with the specified command.