MinorGridlines 属性

返回 Gridlines 对象,该对象代表指定坐标轴的次要网格线。只有主要坐标轴组中的坐标轴才能有网格线。只读。

示例

本示例将图表中数值轴次要网格线的颜色设置为蓝色。

With myChart.Axes(xlValue)

    If .HasMinorGridlines Then

        .MinorGridlines.Border.ColorIndex = 5

    End If

End With