返回 Gridlines 对象,该对象代表指定坐标轴的次要网格线。只有主要坐标轴组中的坐标轴才能有网格线。只读。
本示例对 Chart1 数值坐标轴的次要网格线的颜色进行设置。
With Charts("Chart1").Axes(xlValue) If .HasMinorGridlines Then .MinorGridlines.Border.ColorIndex = 5 'set color to blue End If End With