Class
VisualCanvasHeroTitleLayer
ChartForgeX.Composition
Large multi-color headline layer.
Inheritance
- VisualCanvasLayer
- VisualCanvasHeroTitleLayer
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
- The title X coordinate.
- y double
- The title Y coordinate.
- width double
- The title width used for alignment.
- fontSize double
- The title font size.
- runs System.Collections.Generic.IEnumerable<ChartForgeX.Composition.VisualCanvasTextRun>
- The colored text runs.
Inherited Methods
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.