Table of Contents

Class ClockElementBuilder

Namespace
SharpConsoleUI.Panel.Builders
Assembly
SharpConsoleUI.dll

Fluent builder for ClockElement.

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

Methods

Build()

Builds and returns the configured panel element.

public IPanelElement Build()

Returns

IPanelElement

WithColor(Color)

Sets the text color.

public ClockElementBuilder WithColor(Color color)

Parameters

color Color

Returns

ClockElementBuilder

WithFormat(string)

Sets the time format string.

public ClockElementBuilder WithFormat(string format)

Parameters

format string

Returns

ClockElementBuilder

WithName(string)

Sets the element name.

public ClockElementBuilder WithName(string name)

Parameters

name string

Returns

ClockElementBuilder

WithUpdateInterval(int)

Sets the update interval in milliseconds.

public ClockElementBuilder WithUpdateInterval(int ms)

Parameters

ms int

Returns

ClockElementBuilder