Class
ChartValueAxisPlotBandLabelPadding

Configures the internal padding within value axis plot band label containers to control spacing between label text and label boundaries. Provides precise control over the space inside label areas for optimal text positioning and visual presentation, especially when using label backgrounds or borders. Use this component to adjust label text spacing when working with styled plot band labels that have background colors or decorative borders.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

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

Inheritance: objectComponentBaseDataVizChildComponentChartValueAxisPlotBandLabelPadding

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

ChartValueAxisPlotBandLabelPadding()

Declaration

cs-api-definition
public ChartValueAxisPlotBandLabelPadding()

Properties

Bottom

Sets the bottom padding inside plot band label containers in pixels. Controls the space between label text and the bottom edge of the label area, particularly useful when labels have backgrounds or borders. Use this to prevent text from appearing too close to label boundaries and improve text readability within styled annotation containers. Example: Set to 4 when plot band labels have background colors, or 8 for more generous internal spacing with decorative styling.

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 plot band label containers in pixels. Controls the space between label text and the left edge of the label area, ensuring proper text positioning within annotation boundaries. Use this to adjust text placement when working with label backgrounds, borders, or specific alignment requirements for plot band annotations. Example: Set to 6 to move label text away from the left edge when using background colors or custom annotation styling.

Declaration

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

Property Value

double?

Right

Sets the right padding inside plot band label containers in pixels. Controls the space between label text and the right edge of the label area, preventing text from appearing cramped within styled labels. Use this to ensure label text has adequate space on the right side, particularly important for longer annotation text or decorative styling. Example: Set to 8 when plot band labels need more internal space, or 5 for compact but readable annotation formatting.

Declaration

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

Property Value

double?

Top

Sets the top padding inside plot band label containers in pixels. Controls the space between label text and the top edge of the label area, improving text positioning and visual appeal within styled labels. Use this to create proper spacing above label text, especially when plot band labels have background styling or decorative borders. Example: Set to 3 for subtle top spacing, or 7 when annotation labels have prominent background styling requiring more internal breathing room.

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>