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
WithColor(Color)
Sets the text color.
public ClockElementBuilder WithColor(Color color)
Parameters
colorColor
Returns
WithFormat(string)
Sets the time format string.
public ClockElementBuilder WithFormat(string format)
Parameters
formatstring
Returns
WithName(string)
Sets the element name.
public ClockElementBuilder WithName(string name)
Parameters
namestring
Returns
WithUpdateInterval(int)
Sets the update interval in milliseconds.
public ClockElementBuilder WithUpdateInterval(int ms)
Parameters
msint