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


IMapGrids.MapGrid Property (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.MapGrid Property
ArcGIS Developer Help

IMapGrids.MapGrid Property

The map grid at the specified index.

[Visual Basic .NET]
Public Function get_MapGrid ( _
    ByVal Index As Integer _
) As IMapGrid
[Visual Basic .NET]
Public Sub set_MapGrid ( _
    ByVal Index As Integer, _
    ByVal MapGrid As IMapGrid _
)
[C#]
public IMapGrid get_MapGrid (
    int Index
);
[C#]
public void set_MapGrid (
    int Index,
    IMapGrid MapGrid
);
[C++]
HRESULT get_MapGrid(
  long Index,
  IMapGrid** MapGrid
);
[C++]
HRESULT put_MapGrid(
  long Index,
  IMapGrid* MapGrid
);
[C++]
Parameters
Index [in]

Index is a parameter of type long MapGrid [out, retval]
MapGrid is a parameter of type IMapGrid** Index [in]
Index is a parameter of type long MapGrid [in]
MapGrid is a parameter of type IMapGrid*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

MapGrid returns or sets the specified IMapGrid.  Use this interface when you want to retrieve or update a MapGrid associated with the MapFrame.

 

See Also

IMapGrids Interface