Skip to main content
All docs
V26.1
  • AxisEx.DisplayUnit Property

    Gets or sets display unit settings for axis labels.

    Namespace: DevExpress.Docs.Office

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public DisplayUnitOptionsEx DisplayUnit { get; set; }

    Property Value

    Type Description
    DisplayUnitOptionsEx

    Contains display unit settings for axis labels.

    Remarks

    The following code snippet sets display unit settings for axis labels:

    using DevExpress.Docs.Office;
    
    // Access the chart argument axis.
    CategoryAxisEx? xAxis = chartEx.ArgumentAxis;
    // Set axis label font size and display unit settings.
    if (xAxis != null) {
        xAxis.DisplayUnit = new DisplayUnitOptionsEx { UnitType = DisplayUnitType.Billions };
    }
    
    See Also