HasMinorGridlines 属性

       

如果坐标轴有次要网格线,则该值为 True。仅主要坐标轴组中的坐标轴才能有网格线。Boolean 类型,可读写。

示例

本示例对 Chart1 数值坐标轴的次要网格线的颜色进行设置。

With Charts("Chart1").Axes(xlValue)
    If .HasMinorGridlines Then
        .MinorGridlines.Border.ColorIndex = 4
            'set color to green
    End If
End With