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.AddMapGrid Method (ArcObjects .NET 10.5 SDK) |
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
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.