This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapGrids Interface > IMapGrids.DeleteMapGrid Method (ArcObjects .NET 10.5 SDK) |
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
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.