SetAxesGrid Method
Description
Shows/hides a grid of points or lines with optional snapping.
Syntax
Visual Basic |
---|
Public Function SetAxesGrid( _ ByVal x As Double, _ ByVal y As Double, _ ByVal bShowGrid As Integer, _ ByVal bShowPoints As Integer, _ ByVal bAllowSnaps As Integer _ ) As Integer |
Parameters
- x
- The x axis grid spacing.
- y
- The y axis grid spacing.
- bShowGrid
-
True
Show the grid. False
Hide the grid. - bShowPoints
-
True
Display the grid as points. False
Display the grid as lines. - bAllowSnaps
-
True
Allow snapping on the grid points. False
Disallow snapping on the grid points.
Remarks
The 'G' snapcode can be used to force a snap to a grid point. Grid snapping may be enabled without displaying the grid.
Available: D OD
Group:
Example
sis.SetAxesGrid (10000, 10000, True, False, True)
Creates a 10km grid, displaying a line grid with snaps.