MajorGridLine Property

MajorGridLine returns the major grid line format object. Returns a LineFormat object. This is a read-only property.

Syntax

object.MajorGridLine

Example 1

This example demonstrates how to return the style of major grid lines.

Debug.Print Axis.MajorGridLine.Style

Example 2

This example demonstrates how to set the major grid line color to blue.

Axis.MajorGridLine.ForeColorRGBA.Color = srfColorBlue

Used by: Axis object