Class
ChartTitleBorder

Configures the border styling around the chart title area for enhanced visual presentation. Provides comprehensive control over border appearance including color, style, and thickness to create professional chart designs. Use this component to add visual boundaries around the title, improve contrast, or match your application's design theme.

Definition

Constructors

ChartTitleBorder()

Declaration

cs-api-definition
public ChartTitleBorder()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

Color

Sets the color of the chart title border. Accepts any valid CSS color value including hex codes (#cccccc), RGB values (rgb(204,204,204)), or color names (gray). Use this to create visual definition around the title area and ensure the border complements your chart's color scheme. Example: Set to "#e0e0e0" for a subtle gray border, or "#007acc" to match brand colors and create emphasis.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

DashType

Sets the dash pattern style for the chart title border line. Controls the visual appearance of the border, allowing for solid lines or various dashed patterns for different design effects. Use this to create distinctive border styles that match your application's visual language or highlight specific chart types. Accepts values from the DashType enumeration including solid, dash, dot, and various dash-dot combinations.

Declaration

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

Property Value

DashType?

Width

Sets the thickness of the chart title border in pixels. Controls how prominent the border appears around the title area, affecting the overall visual weight and emphasis. Use this to create subtle outlines with thin borders or bold frames with thicker borders based on your design needs. Example: Set to 1 for a fine border, 2-3 for standard emphasis, or 0 to hide the border completely.

Declaration

cs-api-definition
[Parameter]
public double? Width { 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>