ClassChartSubtitlePadding
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
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartSubtitlePadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartSubtitlePadding
Implements:
Inherited Members
Constructors
ChartSubtitlePadding()
Declaration
public ChartSubtitlePadding()
Properties
Bottom
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.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
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.
Right
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.
Top
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.
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