ClassChartXAxisTitlePadding
Configures the internal spacing within the X-axis title. Provides precise control over the space between the title text and its border or background edge to ensure optimal text presentation. Use this component to create comfortable reading space around the title text and maintain professional appearance with adequate breathing room.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartXAxisTitlePadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartXAxisTitlePadding
Implements:
Inherited Members
Constructors
ChartXAxisTitlePadding()
Declaration
public ChartXAxisTitlePadding()
Properties
Bottom
Sets the bottom padding inside the X-axis title in pixels. Defines the space between the bottom edge of the title text and the title's bottom border or background edge. Use this property to ensure title text doesn't appear cramped against the bottom boundary and maintains professional spacing. Increase for better text readability, especially with larger fonts or when the title has a visible background.
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 X-axis title in pixels. Defines the space between the left edge of the title text and the title's left border or background edge. Use this property to prevent text from appearing too close to the title's left boundary and ensure comfortable reading space. Particularly important when titles have visible backgrounds or borders that could visually crowd the text.
Right
Sets the right padding inside the X-axis title in pixels. Defines the space between the right edge of the title text and the title's right border or background edge. Use this property to ensure title text has adequate breathing room and doesn't appear cramped against the right boundary. Essential for maintaining text readability when titles have background colors or borders that could interfere with text clarity.
Top
Sets the top padding inside the X-axis title in pixels. Defines the space between the top edge of the title text and the title's top border or background edge. Use this property to prevent text from appearing too close to the title's top boundary and maintain balanced vertical spacing. Increase for better visual balance, especially when titles have prominent backgrounds or when using larger font sizes.
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