[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IAxis.MinorGridlines

MinorGridlines Property

MinorGridlines

Gets the IGridlines object that represents the minor gridlines for the specified axis.

Only axes in the primary axis group can have gridlines. You can use the returned object to configure the appearance of minor gridlines after enabling them with HasMinorGridlines.

Declaration
IGridlines MinorGridlines { get; }
ReadOnly Property MinorGridlines As IGridlines
Examples
worksheet.Range["A1:B3"].Value = new object[,] {
    {"Month", "Sales"},
    {"Jan", 10},
    {"Feb", 20}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B3"], RowCol.Columns, true, true);
IAxis valueAxis = shape.Chart.Axes.Item(AxisType.Value);
valueAxis.HasMinorGridlines = true;
IGridlines minorGridlines = valueAxis.MinorGridlines;
minorGridlines.Format.Line.Color.RGB = Color.LightGray;