DxChartSubTitle.CssClass Property
Specifies the cascading style sheet (CSS) class name for the subtitle.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v20.2.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 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