Skip to content

InfoBarSection

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A section within an InfoBar, with text and optional styling.

csharp
public sealed record InfoBarSection : IEquatable<InfoBarSection>

Inheritance

ObjectInfoBarSection

Implements

Constructors

InfoBarSection(string, Hex1bColor?, Hex1bColor?)

A section within an InfoBar, with text and optional styling.

Parameters:

csharp
public InfoBarSection(string Text, Hex1bColor? Foreground = null, Hex1bColor? Background = null)

Properties

Background

Optional background color override.

Returns: Nullable<Hex1bColor>

csharp
public Hex1bColor? Background { get; init; }

Foreground

Optional foreground color override.

Returns: Nullable<Hex1bColor>

csharp
public Hex1bColor? Foreground { get; init; }

Text

The text content of the section.

Returns: String

csharp
public string Text { get; init; }

Released under the MIT License.