Table of Contents

Class StatusTextElementBuilder

Namespace
SharpConsoleUI.Panel.Builders
Assembly
SharpConsoleUI.dll

Fluent builder for StatusTextElement.

public class StatusTextElementBuilder : IPanelElementBuilder
Inheritance
StatusTextElementBuilder
Implements
Inherited Members
Extension Methods

Constructors

StatusTextElementBuilder(string)

Initializes a new builder with the specified text.

public StatusTextElementBuilder(string text)

Parameters

text string

The markup text to display.

Methods

Build()

Builds and returns the configured panel element.

public IPanelElement Build()

Returns

IPanelElement

OnClick(Action)

Sets the click handler.

public StatusTextElementBuilder OnClick(Action handler)

Parameters

handler Action

Returns

StatusTextElementBuilder

WithColor(Color)

Sets the text color.

public StatusTextElementBuilder WithColor(Color color)

Parameters

color Color

Returns

StatusTextElementBuilder

WithName(string)

Sets the element name.

public StatusTextElementBuilder WithName(string name)

Parameters

name string

Returns

StatusTextElementBuilder