Project

ChartForgeX

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

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

VisualCanvasTextLayer

Namespace ChartForgeX.Composition
Assembly ChartForgeX.Visuals
Modifiers sealed

Plain text layer with either an explicit color or the canvas primary foreground.

Inheritance

Constructors

VisualCanvasTextLayer 2 overloads
public VisualCanvasTextLayer(Double x, Double y, Double width, String text, Double fontSize) #

Initializes a text layer that follows the canvas primary foreground at render time.

Parameters

x System.Double requiredposition: 0
The text X coordinate.
y System.Double requiredposition: 1
The text Y coordinate.
width System.Double requiredposition: 2
The text width used for alignment and clipping.
text System.String requiredposition: 3
The text to render.
fontSize System.Double requiredposition: 4
The font size.
public VisualCanvasTextLayer(Double x, Double y, Double width, String text, Double fontSize, ChartColor color) #

Initializes a text layer with an explicit color, retained independently of the canvas theme.

Parameters

x System.Double requiredposition: 0
The text X coordinate.
y System.Double requiredposition: 1
The text Y coordinate.
width System.Double requiredposition: 2
The text width used for alignment and clipping.
text System.String requiredposition: 3
The text to render.
fontSize System.Double requiredposition: 4
The font size.
color ChartForgeX.Primitives.ChartColor requiredposition: 5
The explicit text color, including white or transparent.

Properties

public String Text { get; set; } #

Gets or sets the text.

public Double FontSize { get; set; } #

Gets or sets the font size.

public ChartColor Color { get; set; } #

Gets the authored color, or white when none was supplied. Setting this property selects an explicit color; an uncolored layer renders with the canvas primary foreground.

public TextAlignment Alignment { get; set; } #

Gets or sets the text alignment.

public Boolean Emphasized { get; set; } #

Gets or sets whether the text should use the emphasized raster/SVG treatment.