Skip to content
ChartForgeX
Class

VisualCanvasHeroTitleLayer

ChartForgeX.Composition

Namespace
ChartForgeX.Composition
Assembly
ChartForgeX.Visuals
Modifiers
sealed

Large multi-color headline layer.

Inheritance

Constructors

public VisualCanvasHeroTitleLayer(double x, double y, double width, double fontSize, IEnumerable<VisualCanvasTextRun> runs) #

Initializes a large multi-run hero title layer.

Parameters

x double required
The title X coordinate.
y double required
The title Y coordinate.
width double required
The title width used for alignment.
fontSize double required
The title font size.
runs System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasTextRun> required
The colored text runs.

Properties

public IReadOnlyList<VisualCanvasTextRun> Runs { get; } #

Gets the colored title runs.

public double FontSize { get; set; } #

Gets or sets the largest title font size; SVG and PNG output shrink the title when its runs are wider than VisualCanvasLayer.Width.

public TextAlignment Alignment { get; set; } #

Gets or sets the title alignment.

public TextStyleOverride? TextStyle { get; set; } #

Gets or sets optional shared typography for this headline. Run colors remain unless the style supplies a color.