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


IMapGrids.AddMapGrid Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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