Skip to main content

TitleStyle Class

Stores the title appearance settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

NuGet Package: DevExpress.XamarinForms.Charts

Declaration

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 demonstrates how to create a y-axis’s title, align it and customize its appearance.

Axis Style

<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>
See Also