GM_Utility .DrawGridLinesEx Method
Draws grid lines (either lat/lon or in the view projection) for the specified location.

Namespace:GlobalMapper
Assembly:  GlobalMapperWrapperNET (in GlobalMapperWrapperNET.dll) Version: 18.0.0.0 (18.0.0.0)

Syntax
C#
Copy
Copypublic static GM_Error_t32 DrawGridLinesEx(
    IntPtr aDC,
    bool aLatLonGrid,
    double aGridSpacing,
    GM_Rectangle_t aWorldBounds,
    int aLeftPixel,
    int aTopPixel,
    int aPixelWidth,
    int aPixelHeight,
    GM_Rectangle_t aMaxGridBounds
)

Parameters

aDC
Type:  System . IntPtr
Device context to draw to
aLatLonGrid
Type:  System . Boolean
Draw a lat/lon grid or a view projection grid
aGridSpacing
Type:  System . Double
Grid spacing (use 0.0 for default)
aWorldBounds
Type:  GlobalMapper . GM_Rectangle_t
World bounds to draw or NULL for all
aLeftPixel
Type:  System . Int32
Left pixel coordinate to draw to
aTopPixel
Type:  System . Int32
Top pixel coordinate to draw to
aPixelWidth
Type:  System . Int32
Width in pixels to draw
aPixelHeight
Type:  System . Int32
Height in pixels to draw
aMaxGridBounds
Type:  GlobalMapper . GM_Rectangle_t
Maximum grid bounds (NULL for loaded data bounds)

Return Value

Type:  GM_Error_t32
A GM Error Code
See Also