Skip to main content
All docs
V26.1
  • Axis.CrossType Property

    Gets or sets how this axis crosses another axis.

    Namespace: DevExpress.Docs.Office

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

    Declaration

    public AxisCrossType CrossType { get; set; }

    Property Value

    Type Description
    AxisCrossType

    The way this axis crosses another axis.

    Available values:

    Name Description
    Auto

    Axis crossing position is determined automatically.

    Min

    Axis crosses at the minimum value.

    Max

    Axis crosses at the maximum value.

    Custom

    Axis crosses at a custom value the Axis.CrossesAt property specifies.

    Example

    Set the Axis.CrossType property to Custom and use the Axis.CrossesAt property to specify the crossing point on the axis perpendicular to the current axis:

    DevExpress Presentation API - Custom Axis Position

    using DevExpress.Docs.Office;
    
        CategoryAxis? axis = chart.ArgumentAxis as CategoryAxis;
        if (axis != null) {
            axis.CrossType = AxisCrossType.Custom;
            axis.CrossesAt = 8;
        }
    
    See Also