Configures the border appearance around legend titles in ChartLegendTitle. Use this component to add visual emphasis and structure to legend titles by defining border color, style pattern, and thickness. Borders help separate titles from legend items, create professional styling, and improve overall legend organization and visual hierarchy.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartLegendTitleBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartLegendTitleBorder
Implements:
Inherited Members
Constructors
public ChartLegendTitleBorder()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
protected override void OnInitialized()
Overrides:
protected override void OnParametersSet()
Overrides:
Properties
[Parameter]
public RenderFragment ChildContent { get; set; }
Sets the border color around the legend title. Accepts any valid CSS color including hex codes (#DDDDDD), RGB values (rgb(221,221,221)), named colors (lightgray), or HSL values. Use borders to create visual emphasis around legend titles, improve readability against complex backgrounds, or establish visual hierarchy between title and legend items.
[Parameter]
public string Color { get; set; }
Defines the line style pattern for the legend title border using DashType values. Choose from various patterns: Solid for continuous borders, Dash for dashed outlines, Dot for dotted borders, DashDot for alternating dashes and dots, LongDash for longer dash segments, LongDashDot for long dashes with dots, and LongDashDotDot for complex patterns. Different patterns help distinguish title elements from legend items.
[Parameter]
public DashType? DashType { get; set; }
Controls the thickness of the legend title border in pixels. Set to 0 (default) to hide the border completely, or use positive values like 1-2 pixels for subtle outlines that frame the title. Combine with Color and DashType to create custom title styling that enhances legend organization and visual hierarchy.
[Parameter]
public double? Width { get; set; }