Class
ChartCategoryAxisLabelsBorder

Configures the border appearance around category axis labels in ChartCategoryAxisLabels. Use this component to add visual emphasis to category labels by defining border color, style pattern, and thickness. Borders can improve label readability against complex chart backgrounds or create visual hierarchy in multi-axis charts. Combine with padding and margin settings for optimal label presentation.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class ChartCategoryAxisLabelsBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsBorder

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

ChartCategoryAxisLabelsBorder()

Declaration

cs-api-definition
public ChartCategoryAxisLabelsBorder()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Color

Sets the border color around category axis labels. Accepts any valid CSS color value including hex codes (#FF0000), RGB values (rgb(255,0,0)), named colors (red), or HSL values. Use this to create visual emphasis or improve label readability against complex chart backgrounds.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

DashType

Defines the line style pattern for the category axis label border. Choose from predefined patterns to create different visual effects: Solid creates continuous borders, Dash produces dashed outlines, Dot creates dotted borders, DashDot alternates dashes and dots, LongDash uses longer dash segments, LongDashDot combines long dashes with dots, and LongDashDotDot creates complex patterns with long dashes followed by two dots.

Declaration

cs-api-definition
[Parameter]
public DashType? DashType { get; set; }

Property Value

DashType?

Width

Controls the thickness of the category axis label border in pixels. Set to 0 (default) to hide the border completely, or use positive values like 1-3 pixels for subtle outlines, or larger values for prominent borders. Combine with Color to create custom label styling that enhances readability.

Declaration

cs-api-definition
[Parameter]
public double? Width { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>