Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 45
Forks 2
NuGet downloads 48,107
Release ChartForgeX-v1.7.0
Language: HTML Updated: 2026-09-02

API Reference

Class

VisualCanvasKeyValueBlockLayer

Namespace ChartForgeX.Composition

Reusable key/value text block with measured label columns and wrapped value text.

Inheritance

  • Object
  • VisualCanvasKeyValueBlockLayer

Constructors

VisualCanvasKeyValueBlockLayer(System.Double x, System.Double y, System.Double width, System.Double height, System.Collections.Generic.IEnumerable{ChartForgeX.Composition.VisualCanvasKeyValueItem} items) #

Initializes a key/value text block layer.

Parameters

x System.Double required
The block X coordinate.
y System.Double required
The block Y coordinate.
width System.Double required
The block width.
height System.Double required
The initial block height.
items System.Collections.Generic.IEnumerable{ChartForgeX.Composition.VisualCanvasKeyValueItem} required
The key/value rows.

Methods

MeasureHeight() #

Measures the block height using the current text and wrapping settings.

Properties

Items #

Gets the key/value rows.

LabelFontSize #

Gets or sets the label font size.

ValueFontSize #

Gets or sets the value font size.

ColumnGap #

Gets or sets the gap between label and value columns.

RowGap #

Gets or sets the gap between rows.

LabelWidth #

Gets or sets an explicit label column width. When empty, the widest label is measured.

ValueWrapWidth #

Gets or sets an explicit value wrap width. When empty, the remaining block width is used.

LabelColorOverride #

Gets or sets an optional default label color override.

ValueColorOverride #

Gets or sets an optional default value color override.

FontFamilyName #

Gets or sets the SVG font family name. PNG output uses the dependency-free built-in font path.

LabelEmphasized #

Gets or sets whether labels use the emphasized text treatment.

ValueEmphasized #

Gets or sets whether values use the emphasized text treatment.