TableRowRole
ConsoleMonster.Widgets
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.
Returned or exposed by 12
- Extension method TableRowRole.AsciiMarker
- Extension method TableRowRole.Bold
- Extension method TableRowRole.Marker
- Extension method TableRowRole.MarkerTone
- Extension method TableRowRole.Muted
- Extension method TableRowRole.Tone
- Method TableRowRoleFluent.AsciiMarker
- Method TableRowRoleFluent.Bold
- Method TableRowRoleFluent.Marker
- Method TableRowRoleFluent.MarkerTone
- Method TableRowRoleFluent.Muted
- Method TableRowRoleFluent.Tone
Accepted by parameters 15
- Method RoleTable.AddRow
- Method Table.AddRow
- Extension method TableRowRole.AsciiMarker
- Extension method TableRowRole.Bold
- Extension method TableRowRole.Marker
- Extension method TableRowRole.MarkerTone
- Extension method TableRowRole.Muted
- Extension method TableRowRole.Tone
- Method TableRowRoleFluent.AsciiMarker
- Method TableRowRoleFluent.Bold
- Method TableRowRoleFluent.Marker
- Method TableRowRoleFluent.MarkerTone
- Method TableRowRoleFluent.Muted
- Method TableRowRoleFluent.Tone
- Method Table<T>.AddRow
Constructors
public TableRowRole() #Inherited Methods
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 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
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { AsciiMarker = value }; tableRowRole.AsciiMarker(value);public static TableRowRole Bold(TableRowRole tableRowRole, bool value) #Sets TableRowRole.Bold: Apply bold emphasis to every cell.
Parameters
- tableRowRole ConsoleMonster.Widgets.TableRowRole
- The instance.
- value bool
- The value.
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
- The instance to configure.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value ConsoleMonster.Styling.ThemeToken?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { MarkerTone = value }; tableRowRole.MarkerTone(value);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
- The instance.
- value bool
- The value.
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
- The instance to configure.
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
- The instance.
- value ConsoleMonster.Styling.ThemeToken?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Widgets.TableRowRole { Tone = value }; tableRowRole.Tone(value);