Table of Contents

Class TableRow

Namespace
SharpConsoleUI.Controls
Assembly
SharpConsoleUI.dll

Represents a row in a TableControl with cell data and optional styling.

public class TableRow
Inheritance
TableRow
Inherited Members

Constructors

TableRow()

Initializes a new instance of the TableRow class with no cells.

public TableRow()

TableRow(IEnumerable<string>)

Initializes a new instance of the TableRow class with the specified cells.

public TableRow(IEnumerable<string> cells)

Parameters

cells IEnumerable<string>

TableRow(params string[])

Initializes a new instance of the TableRow class with the specified cells.

public TableRow(params string[] cells)

Parameters

cells string[]

Properties

BackgroundColor

Gets or sets the background color for this row, overriding table defaults.

public Color? BackgroundColor { get; set; }

Property Value

Color?

Cells

Gets the list of cell values for this row.

public List<string> Cells { get; set; }

Property Value

List<string>

ForegroundColor

Gets or sets the foreground color for this row, overriding table defaults.

public Color? ForegroundColor { get; set; }

Property Value

Color?

IsEnabled

Gets or sets whether this row is enabled for interaction.

public bool IsEnabled { get; set; }

Property Value

bool

this[int]

Gets or sets the cell value at the specified index.

public string this[int index] { get; set; }

Parameters

index int

Property Value

string

Tag

Gets or sets an arbitrary object associated with this row for user data.

public object? Tag { get; set; }

Property Value

object