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

IMapGrids Interface (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
ArcGIS Developer Help

IMapGrids Interface

Provides access to members that control the map grids in a data frame.

Product Availability

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

When To Use

IMapGrids is implemented only by the MapFrame object, but it is not the default interface for that object (IMapFrame is the default).  Use this interface when you want to retrieve or set the grids (sometimes known as graticules) displayed with a particular MapFrame.  The Grids are used to provide reference information for the map.



Name Description
Method AddMapGrid Adds a map grid to the map frame.
Method ClearMapGrids Clears all map grids from the map frame.
Method DeleteMapGrid Deletes a map grid from the map frame.
Read/write property MapGrid The map grid at the specified index.
Read-only property MapGridCount The number of map grids associated with the map frame.

Classes that implement IMapGrids

Classes Description
MapFrame A graphic element for displaying maps.