ClassChartCategoryAxisTitlePadding
Controls the internal spacing within category axis titles in ChartCategoryAxisTitle. Use this component to add space between the title text and the title background or border edges. Padding improves text readability and visual appearance, especially when axis titles have background colors, borders, or custom styling that requires proper text spacing for professional presentation.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class ChartCategoryAxisTitlePadding : DataVizChildComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentChartCategoryAxisTitlePadding
Implements:
Inherited Members
Constructors
ChartCategoryAxisTitlePadding()
Declaration
public ChartCategoryAxisTitlePadding()
Properties
Bottom
Sets the bottom padding space inside the category axis title in pixels. This creates internal spacing between the title text and the bottom edge of the title background or border. Use values like 2-10 pixels to improve text readability and visual appearance, especially when titles have backgrounds, borders, or custom styling.
Declaration
[Parameter]
public double? Bottom { get; set; }
Property Value
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Left
Sets the left padding space inside the category axis title in pixels. Creates internal spacing between the title text and the left edge of the title background or border. Common values are 2-10 pixels to ensure text doesn't touch title boundaries and maintains proper readability within the axis context.
Right
Sets the right padding space inside the category axis title in pixels. This creates internal spacing between the title text and the right edge of the title background or border. Use values like 2-10 pixels to provide proper text spacing, especially important for titles with background colors or borders.
Top
Sets the top padding space inside the category axis title in pixels. Creates internal spacing between the title text and the top edge of the title background or border. Standard values range from 2-10 pixels to improve text presentation and prevent text from touching title boundaries in axis configurations.
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