Skip to main content
All docs
V26.1
  • AxisBase.MajorTickMark Property

    Gets or sets the major tick mark position type.

    Namespace: DevExpress.Docs.Office

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

    Declaration

    public AxisTickMarkType MajorTickMark { get; set; }

    Property Value

    Type Description
    AxisTickMarkType

    The major tick mark position type.

    Available values:

    Name Description
    Cross

    Specifies that the tick marks should cross the axis.

    Inside

    Specifies that the tick marks should be displayed inside the plot area.

    None

    Specifies that the tick marks should not be displayed on the axis.

    Outside

    Specifies that the tick marks should be displayed outside the plot area.

    Example

    Use the Axis.MajorTickMark and Axis.MinorTickMark properties to specify the tick mark type for major and minor ticks. Possible values are None, Inside, Outside, and Cross:

    using DevExpress.Docs.Office;
    
        CategoryAxis? xAxis = chart.ArgumentAxis as CategoryAxis;
        if (xAxis != null) {
            xAxis.MajorTickMark = AxisTickMarkType.Cross;
            xAxis.MinorTickMark = AxisTickMarkType.Inside;
        }
    
    See Also