ClassChartXAxisPlotBandLabelBorder
Configures the border styling for X-axis plot band labels. Provides comprehensive control over border appearance including color, line style, and thickness to enhance label visibility and professional presentation. Use this component to create clear visual separation between labels and plot band backgrounds, improving readability and chart aesthetics.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartXAxisPlotBandLabelBorder : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartXAxisPlotBandLabelBorder
Implements:
Inherited Members
Constructors
ChartXAxisPlotBandLabelBorder()
Declaration
public ChartXAxisPlotBandLabelBorder()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Color
Specifies the color of the plot band label border. Accepts any valid CSS color value including hex codes (#000000), RGB values (rgb(0,0,0)), or color names (black). Use colors that provide sufficient contrast against both the label background and plot band color for optimal readability. Consider using darker colors for borders to create clear definition around label text.
DashType
Defines the line pattern for the plot band label border using predefined dash styles. Available options include solid lines for standard professional borders, dashed patterns for stylized presentations, and dotted lines for subtle label definition. Choose dash types that complement the overall chart design while ensuring clear label boundary definition. See DashType for all available line pattern options.
Declaration
[Parameter]
public DashType? DashType { get; set; }
Property Value
Width
Sets the thickness of the plot band label border in pixels. Use thin borders (1-2 pixels) for subtle label definition or thicker borders (2-3 pixels) for more prominent label emphasis. A value of 0 removes the border entirely, which is useful when relying on background color contrast for label visibility. Balance border width with label size and chart scale for optimal visual hierarchy.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
Serialize()
Declaration
public Dictionary<string, object> Serialize()
Returns