Skip to main content

DxChartSubTitle.CssClass Property

Specifies the name of a CSS class applied to a subtitle.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string CssClass { get; set; }

Property Value

Type Description
String

The CSS class name.

Remarks

The following code applies a custom style to a subtitle:

<style>
    .subtitle-style{
        font-size: 12px;
        font-family: Tahoma;
        color: blue;
    }
</style>

<DxChart Data="@SalesData">
    <DxChartTitle Text="Weather Forecast">
        <DxChartSubTitle Text="by day" CssClass="subtitle-style"/>
    </DxChartTitle>
</DxChart>    

Customized subtitle

Refer to CSS Classes for more information.

See Also