MajorGridColor Property

Measurement Studio User Interface

MajorGridColor Property

Syntax

CWTicks.MajorGridColor

Data Type

Color

Purpose

Specifies the color of major grid lines.

Example

'Enable major and minor grid lines on the graph's x axis
CWGraph1.Axes.Item(1).Ticks.MajorGrid = True
CWGraph1.Axes.Item(1).Ticks.MinorGrid = True

'Set the grid line colors
CWGraph1.Axes.Item(1).Ticks.MajorGridColor = vbRed
CWGraph1.Axes.Item(1).Ticks.MinorGridColor = vbYellow

See Also

MinorGridColor