Skip to content
ChartForgeX

API Reference

Class

VisualCanvasHeroBadgeLayer

Namespace ChartForgeX.Composition
Assembly ChartForgeX.Visuals
Modifiers sealed

Central logo or icon badge layer.

Inheritance

Constructors

public VisualCanvasHeroBadgeLayer(Double x, Double y, Double width, Double height, String symbol) #

Initializes a hero badge layer.

Parameters

x System.Double requiredposition: 0
The badge X coordinate.
y System.Double requiredposition: 1
The badge Y coordinate.
width System.Double requiredposition: 2
The badge width.
height System.Double requiredposition: 3
The badge height.
symbol System.String requiredposition: 4
The badge symbol.

Properties

public String Symbol { get; set; } #

Gets or sets the badge symbol.

public ChartColor Accent { get; set; } #

Gets or sets the badge accent color.

public ChartColor? AccentOverride { get; set; } #

Gets or sets an explicit badge accent color. When empty, renderers use the current theme secondary accent.

public String ImageHref { get; set; } #

Gets or sets an SVG-compatible image reference for the badge logo. Renderers never fetch it for PNG output.

public Byte[]? ImageRgba { get; set; } #

Gets or sets borrowed source RGBA pixels. SVG embeds them as PNG when ImageHref is empty.

public Int32 ImageSourceWidth { get; set; } #

Gets or sets the source bitmap width for PNG output.

public Int32 ImageSourceHeight { get; set; } #

Gets or sets the source bitmap height for PNG output.

public VisualCanvasImageFit ImageFit { get; set; } #

Gets or sets how the badge image is placed inside the badge.

public Double ImagePadding { get; set; } #

Gets or sets padding between the badge shell and image content.

public Double ImageOpacity { get; set; } #

Gets or sets badge image opacity from zero to one.

public Boolean HasImage { get; } #

Gets whether the badge has image content for at least one renderer.