TableArtifact
ChartForgeX.VisualArtifacts
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.
Returned or exposed by 24
- Method MarkupTableParser.Parse
- Method MarkupTableParser.ParseBlock
- Extension method MermaidEventModelingDataBlock.ToDataTable
- Extension method MermaidEventModelingDocument.ToDataTable
- Method MermaidEventModelingRendering.ToDataTable
- Property TopologyNode.TableContent
- Extension method TableArtifact.Capabilities
- Extension method TableArtifact.ExportFormats
- Extension method TableArtifact.Id
- Extension method TableArtifact.ShowGridLines
- Extension method TableArtifact.Subtitle
- Extension method TableArtifact.Title
- Extension method TableArtifact.TotalRowCount
- Method TableArtifact.AddColumn
- Method TableArtifact.AddRow
- Method TableArtifact.Create
- Method TableArtifact.UpdateRow
- Method TableArtifactFluent.Capabilities
- Method TableArtifactFluent.ExportFormats
- Method TableArtifactFluent.Id
- Method TableArtifactFluent.ShowGridLines
- Method TableArtifactFluent.Subtitle
- Method TableArtifactFluent.Title
- Method TableArtifactFluent.TotalRowCount
Accepted by parameters 28
- Extension method TopologyNode.TableContent
- Extension method TopologyNode.TableContent
- Method TopologyNodeFluent.TableContent
- Method TopologyNodeFluent.TableContent
- Extension method TableArtifact.Capabilities
- Extension method TableArtifact.ExportFormats
- Extension method TableArtifact.Id
- Extension method TableArtifact.ShowGridLines
- Extension method TableArtifact.Subtitle
- Extension method TableArtifact.Title
- Extension method TableArtifact.ToHtmlPage
- Extension method TableArtifact.ToPng
- Extension method TableArtifact.ToPreviewBlock
- Extension method TableArtifact.ToSvg
- Extension method TableArtifact.TotalRowCount
- Extension method TableArtifact.ToVisualArtifact
- Method TableArtifactFluent.Capabilities
- Method TableArtifactFluent.ExportFormats
- Method TableArtifactFluent.Id
- Method TableArtifactFluent.ShowGridLines
- Method TableArtifactFluent.Subtitle
- Method TableArtifactFluent.Title
- Method TableArtifactFluent.TotalRowCount
- 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) #Adds a table column.
Parameters
- id string
- label string
- type ChartForgeX.VisualArtifacts.TableArtifactColumnType = Text
- alignment ChartForgeX.Typography.TextAlignment = Left
- width double? = null
Returns
TableArtifactpublic TableArtifact AddRow(string key, params object?[] values) #Adds an in-memory row used by static previews and small table hosts.
Parameters
- key string
- values object?[]
Returns
TableArtifactpublic static TableArtifact Create(string id) #Creates a new table artifact.
Parameters
- id string
Returns
TableArtifactpublic bool Supports(TableArtifactCapabilities capability) #Returns true when the table declares the requested capability.
Parameters
- capability ChartForgeX.VisualArtifacts.TableArtifactCapabilities
Returns
boolpublic bool SupportsExport(VisualArtifactExportFormat format) #Returns true when the table declares the requested static export format.
Parameters
- format ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
Returns
boolpublic TableArtifact UpdateRow(int rowIndex, Action<TableArtifactRow> configure) #Replaces an existing row with an independently configured copy, including its cells and metadata.
Parameters
- rowIndex int
- configure System.Action<ChartForgeX.VisualArtifacts.TableArtifactRow>
Returns
TableArtifactInherited Methods
Properties
public bool ShowGridLines { get; set; } #Gets or sets whether native table output separates rows and columns with grid lines.
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
- The instance.
- value ChartForgeX.VisualArtifacts.TableArtifactCapabilities
- The value.
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
- The instance.
- value ChartForgeX.VisualArtifacts.VisualArtifactExportFormat
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value string
- The value.
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
- The instance.
- value string
- The value.
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
- 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
- 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
- The table artifact.
public static string ToSvg(TableArtifact table) #Renders a table artifact static preview to SVG.
Parameters
- table ChartForgeX.VisualArtifacts.TableArtifact
- 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
- The instance.
- value long?
- The value.
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
- The table artifact.