Skip to content
ChartForgeX
Class

TableArtifact

ChartForgeX.VisualArtifacts

Namespace
ChartForgeX.VisualArtifacts
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

Describes one reusable table artifact for static rendering and native-host interaction.

Inheritance

  • object
  • TableArtifact

Usage

Explore 52 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 28

Constructors

public TableArtifact() #

Methods

public TableArtifact AddColumn(string id, string label, TableArtifactColumnType type = Text, TextAlignment alignment = Left, double? width = null) #

Adds a table column.

Parameters

id string required
label string required
type ChartForgeX.VisualArtifacts.TableArtifactColumnType = Text optional
alignment ChartForgeX.Typography.TextAlignment = Left optional
width double? = null optional
public TableArtifact AddRow(string key, params object?[] values) #

Adds an in-memory row used by static previews and small table hosts.

Parameters

key string required
values object?[] required
public static TableArtifact Create(string id) #

Creates a new table artifact.

Parameters

id string required
public bool Supports(TableArtifactCapabilities capability) #

Returns true when the table declares the requested capability.

Parameters

capability ChartForgeX.VisualArtifacts.TableArtifactCapabilities required

Returns

bool
public bool SupportsExport(VisualArtifactExportFormat format) #

Returns true when the table declares the requested static export format.

Parameters

format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat required

Returns

bool
public TableArtifact UpdateRow(int rowIndex, Action<TableArtifactRow> configure) #

Replaces an existing row with an independently configured copy, including its cells and metadata.

Parameters

rowIndex int required
configure System.Action<ChartForgeX.VisualArtifacts.TableArtifactRow> required

Properties

public bool ShowGridLines { get; set; } #

Gets or sets whether native table output separates rows and columns with grid lines.

public string Id { get; set; } #

Gets or sets a stable table identifier.

public string Title { get; set; } #

Gets or sets the table title.

public string Subtitle { get; set; } #

Gets or sets the table subtitle.

public IReadOnlyList<TableArtifactColumn> Columns { get; } #

Gets table columns.

public IReadOnlyList<TableArtifactRow> Rows { get; } #

Gets in-memory table rows used by static previews and small tables.

public TableArtifactCapabilities Capabilities { get; set; } #

Gets or sets host-level capabilities declared by this artifact.

public VisualArtifactExportFormat ExportFormats { get; set; } #

Gets or sets static export formats declared by this artifact.

public long? TotalRowCount { get; set; } #

Gets or sets the total row count when the artifact is backed by virtualized data.

public Dictionary<string, string> Metadata { get; } #

Gets table metadata for host adapters and exporters.

Extension Methods

public static TableArtifact Capabilities(TableArtifact tableArtifact, TableArtifactCapabilities value) #

Sets TableArtifact.Capabilities: Gets or sets host-level capabilities declared by this artifact.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value ChartForgeX.VisualArtifacts.TableArtifactCapabilities required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { Capabilities = value };    tableArtifact.Capabilities(value);
public static TableArtifact ExportFormats(TableArtifact tableArtifact, VisualArtifactExportFormat value) #

Sets TableArtifact.ExportFormats: Gets or sets static export formats declared by this artifact.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { ExportFormats = value };    tableArtifact.ExportFormats(value);
public static TableArtifact Id(TableArtifact tableArtifact, string value) #

Sets TableArtifact.Id: Gets or sets a stable table identifier.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value string required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { Id = value };    tableArtifact.Id(value);
public static TableArtifact ShowGridLines(TableArtifact tableArtifact, bool value = true) #

Sets TableArtifact.ShowGridLines: Gets or sets whether native table output separates rows and columns with grid lines.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { ShowGridLines = value };    tableArtifact.ShowGridLines(value);
public static TableArtifact Subtitle(TableArtifact tableArtifact, string value) #

Sets TableArtifact.Subtitle: Gets or sets the table subtitle.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value string required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { Subtitle = value };    tableArtifact.Subtitle(value);
public static TableArtifact Title(TableArtifact tableArtifact, string value) #

Sets TableArtifact.Title: Gets or sets the table title.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value string required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { Title = value };    tableArtifact.Title(value);
public static string ToHtmlPage(TableArtifact table) #

Renders a table artifact static preview to a standalone HTML page.

Parameters

table ChartForgeX.VisualArtifacts.TableArtifact required
The table artifact.

Returns

string HTML markup.
public static byte[] ToPng(TableArtifact table) #

Renders a table artifact static preview to PNG.

Parameters

table ChartForgeX.VisualArtifacts.TableArtifact required
The table artifact.

Returns

byte[] PNG bytes.
public static ChartTable ToPreviewBlock(TableArtifact table) #

Converts a table artifact into the existing static ChartForgeX table visual block.

Parameters

table ChartForgeX.VisualArtifacts.TableArtifact required
The table artifact.

Returns

ChartTable A static table preview block.
public static string ToSvg(TableArtifact table) #

Renders a table artifact static preview to SVG.

Parameters

table ChartForgeX.VisualArtifacts.TableArtifact required
The table artifact.

Returns

string SVG markup.
public static TableArtifact TotalRowCount(TableArtifact tableArtifact, long? value) #

Sets TableArtifact.TotalRowCount: Gets or sets the total row count when the artifact is backed by virtualized data.

Parameters

tableArtifact ChartForgeX.VisualArtifacts.TableArtifact required
The instance.
value long? required
The value.

Returns

TableArtifact The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.VisualArtifacts.TableArtifact { TotalRowCount = value };    tableArtifact.TotalRowCount(value);
public static VisualArtifact ToVisualArtifact(TableArtifact table) #

Wraps a table artifact in a product-neutral visual artifact envelope.

Parameters

table ChartForgeX.VisualArtifacts.TableArtifact required
The table artifact.

Returns

VisualArtifact A visual artifact envelope.