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

    Gets or sets line settings for minor gridlines.

    Namespace: DevExpress.Docs.Office

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

    Declaration

    public ChartLineOptions MinorGridlines { get; set; }

    Property Value

    Type Description
    ChartLineOptions

    Line settings for minor gridlines.

    Example

    Use an axis MajorGridlines and MinorGridlines properties to customize major and minor gridlines:

    using DevExpress.Docs.Presentation;
    using DevExpress.Docs.Office;
    
        ValueAxis? yAxis = chart.ValueAxis;
        if (yAxis != null) {
            yAxis.MajorGridlines = new ChartLineOptions { OutlineStyle = new OutlineStyle { Fill = new SolidFill(Color.DarkMagenta) } };
            yAxis.MinorGridlines = new ChartLineOptions { OutlineStyle = new OutlineStyle { Fill = new SolidFill(Color.Magenta) } };
        }
    
    See Also