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


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

IMapGrids.AddMapGrid Method

Adds a map grid to the map frame.

[Visual Basic .NET]
Public Sub AddMapGrid ( _
    ByVal MapGrid As IMapGrid _
)
[C#]
public void AddMapGrid (
    IMapGrid MapGrid
);
[C++]
HRESULT AddMapGrid(
  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

AddMapGrid will add a new MapGrid to the MapFrame.  Use this interface when you have a valid IMapGrid object that you want to associate a MapFrame object.

 

See Also

IMapGrids Interface