Table of Contents

Class StatusBarItem

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Represents a single item in a StatusBarControl. Changing properties triggers parent invalidation unless inside a BatchUpdate.

public class StatusBarItem
Inheritance
StatusBarItem
Inherited Members
Extension Methods

Properties

IsSeparator

When true, renders as separator character with no click behavior.

public bool IsSeparator { get; set; }

Property Value

bool

IsVisible

Gets or sets whether this control is visible.

public bool IsVisible { get; set; }

Property Value

bool

Label

Label text rendered after the shortcut (e.g. "Search", "Navigate"). Supports markup syntax for colors.

public string Label { get; set; }

Property Value

string

LabelBackground

Override background color for this item's label text. Null inherits from control.

public Color? LabelBackground { get; set; }

Property Value

Color?

LabelForeground

Override foreground color for this item's label text. Null inherits from control.

public Color? LabelForeground { get; set; }

Property Value

Color?

OnClick

Click handler invoked when this item is clicked.

public Action? OnClick { get; set; }

Property Value

Action

Shortcut

Key hint text rendered with accent color (e.g. "Ctrl+S", "Enter").

public string? Shortcut { get; set; }

Property Value

string

ShortcutBackground

Override background color for this item's shortcut text. Null inherits from control.

public Color? ShortcutBackground { get; set; }

Property Value

Color?

ShortcutForeground

Override foreground color for this item's shortcut text. Null inherits from control.

public Color? ShortcutForeground { get; set; }

Property Value

Color?