返回 Gridlines 对象,该对象代表指定坐标轴的主要网格线。只有主要坐标轴组中的坐标轴才能有网格线。只读。
本示例设置图表中数值轴主要网格线的颜色。
With myChart.Axes(xlValue) If .HasMajorGridlines Then .MajorGridlines.Border.ColorIndex = 5 End If End With