Skip to content
ConsoleMonster
Class

TableRowRole

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

The tone, emphasis and optional literal marker of one table row.

Inheritance

  • object
  • TableRowRole

Usage

Explore 27 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 15

Constructors

public TableRowRole() #

Properties

public ThemeToken? Tone { get; set; } #

An optional theme role for every cell in the row.

public bool Muted { get; set; } #

Mute every cell; an explicit TableRowRole.Tone takes precedence.

public bool Bold { get; set; } #

Apply bold emphasis to every cell.

public string? Marker { get; set; } #

A plain text marker for RoleTable's dedicated marker column.

public string? AsciiMarker { get; set; } #

The ASCII marker; null uses TableRowRole.Marker.

public ThemeToken? MarkerTone { get; set; } #

Optional marker-only role, without changing the rest of the row.

Extension Methods

public static TableRowRole AsciiMarker(TableRowRole tableRowRole, string? value) #

Sets TableRowRole.AsciiMarker: The ASCII marker; null uses TableRowRole.Marker.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value string? required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { AsciiMarker = value };    tableRowRole.AsciiMarker(value);
Bold 2 overloads
public static TableRowRole Bold(TableRowRole tableRowRole, bool value) #

Sets TableRowRole.Bold: Apply bold emphasis to every cell.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value bool required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { Bold = value };    tableRowRole.Bold(value);
public static TableRowRole Bold(TableRowRole tableRowRole) #

Sets TableRowRole.Bold to true.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance to configure.

Returns

TableRowRole The same instance.
public static TableRowRole Marker(TableRowRole tableRowRole, string? value) #

Sets TableRowRole.Marker: A plain text marker for RoleTable's dedicated marker column.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value string? required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { Marker = value };    tableRowRole.Marker(value);
public static TableRowRole MarkerTone(TableRowRole tableRowRole, ThemeToken? value) #

Sets TableRowRole.MarkerTone: Optional marker-only role, without changing the rest of the row.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value ConsoleMonster.Styling.ThemeToken? required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { MarkerTone = value };    tableRowRole.MarkerTone(value);
Muted 2 overloads
public static TableRowRole Muted(TableRowRole tableRowRole, bool value) #

Sets TableRowRole.Muted: Mute every cell; an explicit TableRowRole.Tone takes precedence.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value bool required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { Muted = value };    tableRowRole.Muted(value);
public static TableRowRole Muted(TableRowRole tableRowRole) #

Sets TableRowRole.Muted to true.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance to configure.

Returns

TableRowRole The same instance.
public static TableRowRole Tone(TableRowRole tableRowRole, ThemeToken? value) #

Sets TableRowRole.Tone: An optional theme role for every cell in the row.

Parameters

tableRowRole ConsoleMonster.Widgets.TableRowRole required
The instance.
value ConsoleMonster.Styling.ThemeToken? required
The value.

Returns

TableRowRole The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { Tone = value };    tableRowRole.Tone(value);