Class
ChartXAxisPlotBandLabelPadding

Configures the internal spacing within X-axis plot band labels. Provides precise control over the space between the label text and its border or background edge. Use this component to ensure proper text spacing, improve label readability, and create professional-looking labels with adequate breathing room.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartXAxisPlotBandLabelPadding

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

ChartXAxisPlotBandLabelPadding()

Declaration

cs-api-definition
public ChartXAxisPlotBandLabelPadding()

Properties

Bottom

Sets the bottom padding inside the plot band label in pixels. Defines the space between the bottom edge of the label text and the label's bottom border or background edge. Use this property to ensure text doesn't appear cramped against the label bottom and maintains professional spacing. Increase for better text readability, especially with larger fonts or when label background is visible.

Declaration

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

Property Value

double?

ChildContent

Declaration

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

Property Value

RenderFragment

Left

Sets the left padding inside the plot band label in pixels. Defines the space between the left edge of the label text and the label's left border or background edge. Use this property to prevent text from appearing too close to the label's left edge and ensure comfortable reading space. Particularly important when labels have visible backgrounds or borders that could visually crowd the text.

Declaration

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

Property Value

double?

Right

Sets the right padding inside the plot band label in pixels. Defines the space between the right edge of the label text and the label's right border or background edge. Use this property to ensure text has adequate breathing room and doesn't appear cramped against the label's right boundary. Essential for maintaining text readability when labels have background colors or borders that could interfere with text clarity.

Declaration

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

Property Value

double?

Top

Sets the top padding inside the plot band label in pixels. Defines the space between the top edge of the label text and the label's top border or background edge. Use this property to prevent text from appearing too close to the label's top edge and maintain balanced vertical spacing. Increase for better visual balance, especially when labels have prominent backgrounds or when using larger font sizes.

Declaration

cs-api-definition
[Parameter]
public double? Top { 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>