Class
ChartCategoryAxisLabelsPadding

Controls the internal spacing within category axis labels in ChartCategoryAxisLabels. Use this component to add space between label text and the label background or border edges. Padding improves text readability and visual appearance, especially when labels have background colors, borders, or custom styling. Adjust individual sides (top, right, bottom, left) to ensure proper text presentation and prevent text from touching label boundaries.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisLabelsPadding

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

ChartCategoryAxisLabelsPadding()

Declaration

cs-api-definition
public ChartCategoryAxisLabelsPadding()

Properties

Bottom

Sets the bottom padding space inside category axis labels in pixels. This creates internal spacing between the label text and the bottom edge of the label background. Use values like 2-8 pixels to improve text readability and visual appearance, especially when labels have backgrounds or borders.

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 space inside category axis labels in pixels. Creates internal spacing between the label text and the left edge of the label background. Common values are 2-8 pixels to ensure text doesn't touch label borders and maintains proper readability.

Declaration

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

Property Value

double?

Right

Sets the right padding space inside category axis labels in pixels. This creates internal spacing between the label text and the right edge of the label background. Use values like 2-8 pixels to provide proper text spacing, especially important for labels with background colors or borders.

Declaration

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

Property Value

double?

Top

Sets the top padding space inside category axis labels in pixels. Creates internal spacing between the label text and the top edge of the label background. Standard values range from 2-8 pixels to improve text presentation and prevent text from touching label boundaries.

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>