Class ActivityCellBuilder
Fluent builder for a single cell. Terminating with Text(string) returns an
ActivityTextCellBuilder for optional style/alignment refinement; ProgressBar(int, double, ProgressBarStyle, ProgressBarCaps, ProgressBarColorMode)
adds the cell to the owning row and returns the row builder.
public sealed class ActivityCellBuilder
- Inheritance
-
ActivityCellBuilder
- Inherited Members
Methods
ProgressBar(int, double, ProgressBarStyle, ProgressBarCaps, ProgressBarColorMode)
A progress bar with a fixed maximum (default 100), bound to
valueIndex. The
optional style selects a predefined glyph appearance (default █/░);
the optional caps adds end-cap decoration (default none), composing with any style;
the optional colorMode selects single- (default), two- or three-colour painting.public ActivityRowBuilder ProgressBar(int valueIndex, double maxValue = 100, ProgressBarStyle style = ProgressBarStyle.Default, ProgressBarCaps caps = ProgressBarCaps.None, ProgressBarColorMode colorMode = ProgressBarColorMode.Single)
Parameters
valueIndexintmaxValuedoublestyleProgressBarStylecapsProgressBarCapscolorModeProgressBarColorMode
Returns
ProgressBar(int, int, ProgressBarStyle, ProgressBarCaps, ProgressBarColorMode)
A progress bar whose maximum is read from
maxValueIndex. The optional
style selects a predefined glyph appearance (default █/░); the
optional caps adds end-cap decoration (default none), composing with any style;
the optional colorMode selects single- (default), two- or three-colour painting.public ActivityRowBuilder ProgressBar(int valueIndex, int maxValueIndex, ProgressBarStyle style = ProgressBarStyle.Default, ProgressBarCaps caps = ProgressBarCaps.None, ProgressBarColorMode colorMode = ProgressBarColorMode.Single)
Parameters
valueIndexintmaxValueIndexintstyleProgressBarStylecapsProgressBarCapscolorModeProgressBarColorMode
Returns
Text(string)
A single-line markup text element (see ActivityTextElement). Returns a text-cell
builder so the element's style/alignment can be refined fluently (
.Style(...)/.Align(...))
before the next .Cell(...) or .Values(...). Style/alignment are deliberately not
parameters of Text(...) because a template may contain composite placeholders.public ActivityTextCellBuilder Text(string template)
Parameters
templatestring