New to Telerik UI for BlazorStart a free 30-day trial

Configures the border styling for legend item markers in ChartLegendItemMarkers. Use this component to add definition and visual emphasis to marker boundaries by defining border color and line style. Borders help distinguish markers from the legend background and improve overall legend clarity, especially important for creating professional chart presentations.

Definition

Constructors

C#
public ChartLegendItemMarkersBorder()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Sets the border color for legend item markers. Accepts any valid CSS color including hex codes (#666666), RGB values (rgb(102,102,102)), named colors (gray), or HSL values. Marker borders help define marker shapes and create visual distinction between markers and the legend background, improving overall legend clarity and readability.

C#
[Parameter]
public string Color { get; set; }

Defines the line style pattern for legend item marker borders 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 marker types or series categories.

C#
[Parameter]
public DashType? DashType { get; set; }