Back to Devexpress

TitleStyle Class

maui-devexpress-dot-maui-dot-charts-25555e40.md

latest2.8 KB
Original Source

TitleStyle Class

Stores the title appearance settings.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class TitleStyle :
    TextElementStyleBase

The following members return TitleStyle objects:

Remarks

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).

Example

This example creates a y-axis’s title, align it and customize its appearance.

xaml
<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>

Implements

IElementController

INotifyPropertyChanged

Inheritance

System.Object BindableObject Element ChartElementBase ChartElement StyleBase TextElementStyleBase TitleStyle

Extension Methods

Yield<TitleStyle>()

YieldIfNotNull<TitleStyle>()

See Also

TitleStyle Members

DevExpress.Maui.Charts Namespace