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


IMapGrids.ClearMapGrids Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapGrids Interface > IMapGrids.ClearMapGrids Method
ArcGIS Developer Help

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