Axis.MinorGridlines Property
Returns a [Gridlines#SameCHM] object that represents the minor gridlines for the specified axis. Only axes in the primary axis group can have gridlines. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property MinorGridlines As Gridlines
Get
'Usage
Dim instance As Axis
Dim value As Gridlines
value = instance.MinorGridlines
Gridlines MinorGridlines { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.Gridlines
Examples
This example sets the color of the minor gridlines for the value axis of the first chart in the active document.
With ActivePresentation.Slides(1).Shapes(1)
If .HasChart Then
With .Chart.Axes(xlValue)
If .HasMinorGridlines Then
' Set color to blue.
.MinorGridlines.Border.ColorIndex = 5
End If
End With
End If
End With