This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapGrids Interface > IMapGrids.ClearMapGrids Method (ArcObjects .NET 10.4 SDK) |
Clears all map grids from the map frame.
[Visual Basic .NET]
Public Sub ClearMapGrids ( _
)
[C#] public void ClearMapGrids ( );
[C++]
HRESULT ClearMapGrids(
void
);
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.