XGrid

 

Use this property to return/set values that determines the X axis (vertical) grid line characteristics for the plot.

XGrid uses the Line Class set of properties for its characteristics.

 

Example

If XYChartControlObject.XGrid.LineOption = loCustom Then
     intValue = XYChartControlObject.XGrid.LineStyle        'Returns the x-axis' line style
     intValue = XYChartControlObject.XGrid.LineWidth        'Returns the x-axis' line width
     longValue = XYChartControlObject.XGrid.LineColor       'Returns the x-axis' line color
End If

XYChartControlObject.XGrid.LineOption = loNone       'No vertical grid lines will be displayed

XYChartControlObject.XGrid.LineOption = loCustom     'Vertical grid lines will be displayed
XYChartControlObject.XGrid.LineStyle = soDash        'Sets line style to use Dashes
XYChartControlObject.XGrid.LineWidth = woOnePoint    'Sets line width
XYChartControlObject.XGrid.LineColor = vbBlue        'Sets line color to Blue

XYChartControlObject.XGrid.LineColor = RGB(0,0,255)  'Alternate method for setting the line color to Blue
XYChartControlObject.XGrid.LineColor = &hFF0000      'Alternate method for setting the line color to Blue

XYChartControlObject.Refresh                         'Refresh required to update chart with the changes made

 

See Also

Properties    X-Axes Property Page