Skip to content
ChartForgeX
Class

ChartTable

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX.Visuals
Implements
IVisualBlock IStaticVisualSource IFactualVisualPixels
Modifiers
sealed
Attributes
Fluent

A structured, themeable table visual block.

Inheritance

Usage

Explore 78 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 44

Accepted by parameters 34

Constructors

public ChartTable() #

Methods

public ChartTable AddColumn(string header, TextAlignment alignment = Left, double? width = null, string? format = null) #

Adds one table column.

Parameters

header string required
alignment ChartForgeX.Typography.TextAlignment = Left optional
width double? = null optional
format string? = null optional

Returns

ChartTable
public ChartTable AddRow(params object?[] values) #

Adds a table row.

Parameters

values object?[] required

Returns

ChartTable
public static ChartTable Create() #

Creates a new chart table.

Returns

ChartTable
StatusColumn 2 overloads
public ChartTable StatusColumn(string header) #

Marks a column as a status column by header.

Parameters

header string required

Returns

ChartTable
public ChartTable StatusColumn(int columnIndex) #

Marks a column as a status column by index.

Parameters

columnIndex int required

Returns

ChartTable
public ChartTable UpdateRow(int rowIndex, Action<ChartTableRow> configure) #

Installs an independent row snapshot after successful configuration.

Parameters

rowIndex int required
configure System.Action<ChartForgeX.VisualBlocks.ChartTableRow> required

Returns

ChartTable

Properties

public IReadOnlyList<ChartTableColumn> Columns { get; } #

Gets table columns.

public IReadOnlyList<ChartTableRow> Rows { get; } #

Gets table rows.

public bool RowStriping { get; set; } #

Gets or sets whether alternating row backgrounds are rendered.

public bool ShowHeader { get; set; } #

Gets or sets whether the header row is rendered.

public bool Dense { get; set; } #

Gets or sets whether compact row sizing is used.

public int? StatusColumnIndex { get; } #

Gets the optional status column index.

Extension Methods

public static ChartTable Accessibility(ChartTable chartTable, Action<VisualAccessibility> configure) #

Configures VisualBlockOptions.Accessibility in place.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the value.

Returns

ChartTable The same instance.
public static ChartTable Columns(ChartTable chartTable, params string[] headers) #

Adds columns from header text.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
headers string[] required

Returns

ChartTable
public static ChartTable Dense(ChartTable chartTable, bool value = true) #

Sets ChartTable.Dense: Gets or sets whether compact row sizing is used.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.VisualBlocks.ChartTable { Dense = value };    chartTable.Dense(value);
public static ChartTable HostOwnsFrame(ChartTable chartTable, bool value = true) #

Sets VisualBlockOptions.HostOwnsFrame.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                             // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.HostOwnsFrame = value;    chartTable.HostOwnsFrame(value);
public static ChartTable Options(ChartTable chartTable, Action<VisualBlockOptions> configure) #

Configures VisualBlock<ChartTable>.Options in place.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions> required
Configures the value.

Returns

ChartTable The same instance.
public static ChartTable Padding(ChartTable chartTable, ChartPadding value) #

Sets VisualBlockOptions.Padding.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value ChartForgeX.Primitives.ChartPadding required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                       // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.Padding = value;    chartTable.Padding(value);
public static ChartTable RasterScale(ChartTable chartTable, int value) #

Sets VisualBlockOptions.RasterScale.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value int required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                           // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.RasterScale = value;    chartTable.RasterScale(value);
public static ChartTable RowStriping(ChartTable chartTable, bool value = true) #

Sets ChartTable.RowStriping: Gets or sets whether alternating row backgrounds are rendered.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualBlocks.ChartTable { RowStriping = value };    chartTable.RowStriping(value);
public static ChartTable ShowCard(ChartTable chartTable, bool value = true) #

Sets VisualBlockOptions.ShowCard.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                        // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.ShowCard = value;    chartTable.ShowCard(value);
public static ChartTable ShowHeader(ChartTable chartTable, bool value = true) #

Sets ChartTable.ShowHeader: Gets or sets whether the header row is rendered.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ChartForgeX.VisualBlocks.ChartTable { ShowHeader = value };    chartTable.ShowHeader(value);
public static ChartTable Size(ChartTable chartTable, ChartSize value) #

Sets VisualBlockOptions.Size.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value ChartForgeX.Primitives.ChartSize required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                    // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.Size = value;    chartTable.Size(value);
public static ChartTable Subtitle(ChartTable chartTable, string value) #

Sets VisualBlock<ChartTable>.Subtitle.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value string required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.VisualBlocks.ChartTable { Subtitle = value };    chartTable.Subtitle(value);
public static ChartTable SvgColorVariables(ChartTable chartTable, SvgColorVariables? value) #

Sets VisualBlockOptions.SvgColorVariables.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                                 // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.SvgColorVariables = value;    chartTable.SvgColorVariables(value);
public static ChartTable Theme(ChartTable chartTable, VisualTheme value) #

Sets VisualBlockOptions.Theme.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                     // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.Theme = value;    chartTable.Theme(value);
public static ChartTable ThemeMode(ChartTable chartTable, ThemeMode value) #

Sets VisualBlockOptions.ThemeMode.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                         // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.ThemeMode = value;    chartTable.ThemeMode(value);
public static ChartTable Title(ChartTable chartTable, string value) #

Sets VisualBlock<ChartTable>.Title.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value string required
The value.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ChartForgeX.VisualBlocks.ChartTable { Title = value };    chartTable.Title(value);
public static ChartTable TransparentBackground(ChartTable chartTable, bool value = true) #

Sets VisualBlockOptions.TransparentBackground.

Parameters

chartTable ChartForgeX.VisualBlocks.ChartTable required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ChartTable The same instance.

Examples

// C# initializer or property                                                                                                                     // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.ChartTable>)chartTable).Options.TransparentBackground = value;    chartTable.TransparentBackground(value);