Skip to content
ConsoleMonster
Class

CommanderKeyBarItem

ConsoleMonster.Apps.Commander

Namespace
ConsoleMonster.Apps.Commander
Assembly
ConsoleMonster
Modifiers
sealed

One slot of the F-key bar. Slots without an available command are dimmed, never removed, so the bar doesn't shift.

Inheritance

  • object
  • CommanderKeyBarItem

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public int Number { get; } #

The slot, 1 to 10.

public string Label { get; } #

The short label.

public string KeyText { get; } #

The key to show: F5, or Alt+5 where F-keys are swallowed.

public bool IsEnabled { get; } #

Whether the command can run now.

public CommanderCommand? Command { get; } #

The command, or null for an empty slot.