ArcObjects Library Reference (Carto)  

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