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
IsVisible
Gets or sets whether this control is visible.
public bool IsVisible { get; set; }
Property Value
Label
Label text rendered after the shortcut (e.g. "Search", "Navigate"). Supports markup syntax for colors.
public string Label { get; set; }
Property Value
LabelBackground
Override background color for this item's label text. Null inherits from control.
public Color? LabelBackground { get; set; }
Property Value
LabelForeground
Override foreground color for this item's label text. Null inherits from control.
public Color? LabelForeground { get; set; }
Property Value
OnClick
Click handler invoked when this item is clicked.
public Action? OnClick { get; set; }
Property Value
Shortcut
Key hint text rendered with accent color (e.g. "Ctrl+S", "Enter").
public string? Shortcut { get; set; }
Property Value
ShortcutBackground
Override background color for this item's shortcut text. Null inherits from control.
public Color? ShortcutBackground { get; set; }
Property Value
ShortcutForeground
Override foreground color for this item's shortcut text. Null inherits from control.
public Color? ShortcutForeground { get; set; }