TitleStyle Class

Stores the title appearance settings.

Namespace: DevExpress.XamarinForms.Charts

Assembly: DevExpress.XamarinForms.Charts.dll

Declaration

public class TitleStyle :
    TextElementStyleBase

Related API Members

The following members accept/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).

Examples

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>

Inheritance

Object
Xamarin.Forms.BindableObject
See Also