maui-devexpress-dot-maui-dot-charts-25555e40.md
Stores the title appearance settings.
Namespace : DevExpress.Maui.Charts
Assembly : DevExpress.Maui.Charts.dll
NuGet Package : DevExpress.Maui.Charts
public class TitleStyle :
TextElementStyleBase
The following members return TitleStyle objects:
Assign the TitleStyle object to the Style property of the AxisTitle or ConstantLineTitle object that specifies the title of an axis or constant line. Use the TitleStyle.TextStyle property to configure the title text appearance settings (text color and size).
This example creates a y-axis’s title, align it and customize its appearance.
<dxc:ChartView.AxisY>
<dxc:NumericAxisY>
<dxc:NumericAxisY.Title>
<dxc:AxisTitle Text="$/gallon"
Alignment="Outside">
<dxc:AxisTitle.Style>
<dxc:TitleStyle>
<dxc:TitleStyle.TextStyle>
<dxc:TextStyle Color="DarkRed" Size="24"/>
</dxc:TitleStyle.TextStyle>
</dxc:TitleStyle>
</dxc:AxisTitle.Style>
</dxc:AxisTitle>
</dxc:NumericAxisY.Title>
</dxc:NumericAxisY>
</dxc:ChartView.AxisY>
System.Object BindableObject Element ChartElementBase ChartElement StyleBase TextElementStyleBase TitleStyle
See Also