Back to Devexpress

AxisTitle.Alignment Property

maui-devexpress-dot-maui-dot-charts-dot-axistitle.md

latest2.9 KB
Original Source

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

csharp
public AxisTitleAlignment Alignment { get; set; }

Property Value

TypeDefaultDescription
AxisTitleAlignmentCenter

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

|

Available values:

NameDescription
Center

The title is aligned to the center of the axis.

| | Far |

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

| | Near |

The title is aligned near the beginning of the axis.

| | Outside |

The title is located outside axis bounds.

|

Remarks

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

|

Property Value

|

Axis Title Alignment

| | --- | --- | |

Outside

|

| |

Near

|

| |

Center

|

| |

Far

|

|

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>

See Also

AxisTitle Class

AxisTitle Members

DevExpress.Maui.Charts Namespace