Skip to main content
All docs
V25.1
  • AxisLabel.DXTextAlignment Property

    Specifies the alignment of the axis labels text. Use this property in non-Windows environments.

    Namespace: DevExpress.XtraCharts

    Assembly: DevExpress.XtraCharts.v25.1.dll

    NuGet Package: DevExpress.Charts

    #Declaration

    [XtraChartsLocalizableCategory(XtraChartsCategory.Behavior)]
    public DXStringAlignment DXTextAlignment { get; set; }

    #Property Value

    Type Description
    DXStringAlignment

    An enumeration value that specifies the alignment of the label text.

    Available values:

    Name Description
    Near

    The text is aligned near the layout.

    Center

    Text is aligned in the center of the layout rectangle.

    Far

    The text is aligned far from the original position of the layout rectangle.

    #Remarks

    Note that this property value is used to align the text within the label. It doesn’t affect the labels themselves. The table below demonstrates how this property works.

    Near Center Far
    AxisLabel.TextAlignment_Near AxisLabel.TextAlignment_Center AxisLabel.TextAlignment_Far
    See Also