API Reference
TableArtifact
Describes one reusable table artifact for static rendering and native-host interaction.
Inheritance
- Object
- TableArtifact
Usage
Explore 19 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 9
- Method MarkupTableParser.Parse
- Method MarkupTableParser.ParseBlock
- Method TableArtifact.AddColumn
- Method TableArtifact.AddRow
- Method TableArtifact.ConfigureRow
- Method TableArtifact.Create
- Method TableArtifact.WithCapabilities
- Method TableArtifact.WithSubtitle
- Method TableArtifact.WithTitle
Accepted by parameters 10
- Extension method TableArtifact.ToHtmlPage
- Extension method TableArtifact.ToPng
- Extension method TableArtifact.ToPreviewBlock
- Extension method TableArtifact.ToSvg
- Extension method TableArtifact.ToVisualArtifact
- Method TableArtifactRendering.ToHtmlPage
- Method TableArtifactRendering.ToPng
- Method TableArtifactRendering.ToPreviewBlock
- Method TableArtifactRendering.ToSvg
- Method TableArtifactRendering.ToVisualArtifact
Constructors
public TableArtifact() #Methods
public TableArtifact AddColumn(String id, String label, TableArtifactColumnType type = Text, TextAlignment alignment = Left, Double? width = null) #TableArtifactAdds a table column.
Parameters
- id System.String
- label System.String
- type ChartForgeX.VisualArtifacts.TableArtifactColumnType = Text
- alignment ChartForgeX.Typography.TextAlignment = Left
- width System.Double? = null
public TableArtifact AddRow(String key, params Object?[] values) #TableArtifactAdds an in-memory row used by static previews and small table hosts.
Parameters
- key System.String
- values System.Object?[]
public TableArtifact ConfigureRow(Int32 rowIndex, Action<TableArtifactRow> configure) #TableArtifactConfigures one existing row.
Parameters
- rowIndex System.Int32
- configure System.Action<ChartForgeX.VisualArtifacts.TableArtifactRow>
public static TableArtifact Create(String id) #TableArtifactCreates a new table artifact.
Parameters
- id System.String
public Boolean Supports(TableArtifactCapabilities capability) #BooleanReturns true when the table declares the requested capability.
Parameters
- capability ChartForgeX.VisualArtifacts.TableArtifactCapabilities
public Boolean SupportsExport(VisualArtifactExportFormat format) #BooleanReturns true when the table declares the requested static export format.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
public TableArtifact WithCapabilities(TableArtifactCapabilities capabilities) #TableArtifactSets declared host-level table capabilities.
Parameters
- capabilities ChartForgeX.VisualArtifacts.TableArtifactCapabilities
public TableArtifact WithSubtitle(String subtitle) #TableArtifactSets the table subtitle.
Parameters
- subtitle System.String
public TableArtifact WithTitle(String title) #TableArtifactSets the table title.
Parameters
- title System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
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 Int64? 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 String ToHtmlPage(TableArtifact table) #StringRenders a table artifact static preview to a standalone HTML page.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- The table artifact.
Returns
HTML markup.
public static Byte[] ToPng(TableArtifact table) #Byte[]Renders a table artifact static preview to PNG.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- The table artifact.
Returns
PNG bytes.
public static ChartTable ToPreviewBlock(TableArtifact table) #ChartTableConverts a table artifact into the existing static ChartForgeX table visual block.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- The table artifact.
Returns
A static table preview block.
public static String ToSvg(TableArtifact table) #StringRenders a table artifact static preview to SVG.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- The table artifact.
Returns
SVG markup.
public static VisualArtifact ToVisualArtifact(TableArtifact table) #VisualArtifactWraps a table artifact in a product-neutral visual artifact envelope.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- The table artifact.
Returns
A visual artifact envelope.