This document is archived and information here might be outdated.  Recommended version.


IMapGrids.ClearMapGrids Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapGrids.ClearMapGrids Method

Clears all map grids from the map frame.

[Visual Basic .NET]
Public Sub ClearMapGrids ( _
)
[C#]
public void ClearMapGrids (
);
[C++]
HRESULT ClearMapGrids(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

ClearMapGrids will remove all associated grids (graticules) from the MapFrame.  Use this method when you want to programmatically remove all associated MapGrids from the MapFrame.

See Also

IMapGrids Interface