API Reference
VisualCanvasHeroBadgeLayer
Central logo or icon badge layer.
Inheritance
- VisualCanvasLayer
- VisualCanvasHeroBadgeLayer
Constructors
public VisualCanvasHeroBadgeLayer(Double x, Double y, Double width, Double height, String symbol) #Initializes a hero badge layer.
Parameters
- x System.Double
- The badge X coordinate.
- y System.Double
- The badge Y coordinate.
- width System.Double
- The badge width.
- height System.Double
- The badge height.
- symbol System.String
- The badge symbol.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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.
Inherited Properties
public Double X { get; set; } #public Double Y { get; set; } #public Double Width { get; set; } #public Double Height { get; set; } #public ChartRect Bounds { get; } #