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


IMapGrids.DeleteMapGrid 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.DeleteMapGrid Method
ArcGIS Developer Help

IMapGrids.DeleteMapGrid Method

Deletes a map grid from the map frame.

[Visual Basic .NET]
Public Sub DeleteMapGrid ( _
    ByVal MapGrid As IMapGrid _
)
[C#]
public void DeleteMapGrid (
    IMapGrid MapGrid
);
[C++]
HRESULT DeleteMapGrid(
  IMapGrid* MapGrid
);
[C++]
Parameters
MapGrid [in]

MapGrid is a parameter of type IMapGrid*

Product Availability

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

Remarks

DeleteMapGrid is used to remove the specified IMapGrid from the MapFrame.  After executing the method, you still have a valid IMapGrid that could then be added to a different MapFrame.

 

See Also

IMapGrids Interface