DxChartSubTitle.CssClass Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

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

Property Value

Type Description
String

The CSS class name.

Remarks

The following code shows how to apply a custom style to a subtitle:

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

<DxChart Data="@SalesData">
    <DxChartTitle Text="Sales amount">
        <DxChartSubTitle Text="by cities" CssClass="subtitle-style"/>
    </DxChartTitle>
</DxChart>    

Refer to CSS Classes for more information.

See Also