Skip to main content

AxisTitle.Alignment Property

Gets or sets the alignment of the axis title relative to the axis. This is a bindable property.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

Declaration

public AxisTitleAlignment Alignment { get; set; }

Property Value

Type Default Description
AxisTitleAlignment Center

An AxisTitleAlignment enumeration value that specifies how to align the axis title.

Available values:

Name Description
Center

The title is aligned to the center of the axis.

AxisTitleAlignment.Center

Far

The title is aligned far from the beginning of the axis.

AxisTitleAlignment.Far

Near

The title is aligned near the beginning of the axis.

AxisTitleAlignment.Near

Outside

The title is located outside axis bounds.

AxisTitleAlignment.Outside

Remarks

Use the Alignment property to specify the alignment of the axis title relative to the axis.

Property Value

Axis Title Alignment

Outside

AxisTitle.Alignment Outside

Near

AxisTitle.Alignment Near

Center

AxisTitle.Alignment Center

Far

AxisTitle.Alignment Far

Example

This example creates 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