New to Telerik UI for BlazorStart a free 30-day trial

Configures the internal padding within the chart subtitle area to control spacing between the subtitle text and its boundaries. Provides precise control over the space inside the subtitle container for optimal text positioning and visual appeal. Use this component to adjust subtitle text spacing when working with background colors or borders around the subtitle.

Definition

Constructors

C#
public ChartSubtitlePadding()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Properties

Sets the bottom padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the bottom edge of its container, particularly useful when the subtitle has a background or border. Use this to prevent text from appearing too close to the subtitle's bottom boundary and improve readability. Example: Set to 8 when the subtitle has a background color or border to create breathing room around the text.

C#
[Parameter]
public double? Bottom { get; set; }

Sets the left padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the left edge of its container, ensuring proper text positioning. Use this to adjust text placement within the subtitle area, especially when working with subtitle backgrounds or custom styling. Example: Set to 12 to move subtitle text away from the left edge when using background colors or borders.

C#
[Parameter]
public double? Left { get; set; }

Sets the right padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the right edge of its container, preventing text from appearing cramped. Use this to ensure subtitle text has adequate space on the right side, particularly with right-aligned text or backgrounds. Example: Set to 15 when the subtitle text needs more space from the right boundary for visual balance.

C#
[Parameter]
public double? Right { get; set; }

Sets the top padding inside the chart subtitle area in pixels. Controls the space between the subtitle text and the top edge of its container, improving text positioning and visual appeal. Use this to create proper spacing above the subtitle text, especially when the subtitle has background styling. Example: Set to 6 to provide breathing room above the text when the subtitle has a colored background or border.

C#
[Parameter]
public double? Top { get; set; }