TextStyle Class
Stores the text appearance settings.
Namespace: DevExpress.Maui.Charts
Assembly: DevExpress.Maui.Charts.dll
NuGet Package: DevExpress.Maui.Charts
Declaration
public class TextStyle :
StyleBase
Related API Members
The following members return TextStyle objects:
Remarks
Assign the TextStyle object with the specified Color and Size settings to the TextStyle property of an object that defines the appearance of the chart’s element. The following objects allow you to configure the text style:
- AxisLabelStyle
- CrosshairLineStyle
- HintStyleBase
- LegendStyle
- PieCenterTextLabelStyle
- SeriesLabelStyle
- TitleStyle
Example
This example adds series labels to a bar chart, and customize their text pattern, layout and appearance.
<dxc:ChartView>
<dxc:ChartView.Series>
<dxc:BarSeries>
<dxc:BarSeries.Label>
<dxc:BarSeriesLabel Position="InsideTop"
Indent="50"
TextPattern="{}{V$.###}">
<dxc:BarSeriesLabel.Style>
<dxc:SeriesLabelStyle>
<dxc:SeriesLabelStyle.TextStyle>
<dxc:TextStyle Color="White" Size="24"/>
</dxc:SeriesLabelStyle.TextStyle>
</dxc:SeriesLabelStyle>
</dxc:BarSeriesLabel.Style>
</dxc:BarSeriesLabel>
</dxc:BarSeries.Label>
</dxc:BarSeries>
</dxc:ChartView.Series>
</dxc:ChartView>
Inheritance
System.Object
BindableObject
Element
DevExpress.Maui.Core.Internal.DXElementBaseCore
ChartElement
StyleBase
TextStyle
See Also