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


IMapGridFactory Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > CartoUI > ESRI.ArcGIS.CartoUI > Interfaces > IM > IMapGridFactory Interface
ArcGIS Developer Help

IMapGridFactory Interface

Provides access to members of the map grid factory.

Product Availability

Available with ArcGIS Desktop.

Description

You can use the MapGridFactory coclass to quickly create map grids. The map grids created will have default properties applied. Use one of the inheriting coclasses�GraticuleFactory, IndexGridFactory, MeasuredGridFactory, or CustomOverlayGridFactory�to create the respective map grid.

The way to manage the map grids created by the MapGridFactory is detailed in the Carto Library Overview

The Create method takes a map frame as its argument and returns an IMapGrid interface to a newly created map grid. The map grid has default properties. This is similar to creating a map grid and using IMapGrid::SetDefault to assign properties to it. Name returns the name of the map grid class to which the map grid factory object belongs. An example is provided in the CartoUI Library Overview

Members

Name Description
Method Create Creates a map grid.
Read-only property Name The name of the map grid class.

Classes that implement IMapGridFactory

Classes Description
CustomOverlayGridFactory Custom overlay grid factory class.
GraticuleFactory Graticule factory class.
IndexGridFactory Index grid factory class.
MeasuredGridFactory Measured grid factory class.
MgrsGridFactory MGRS grid factory class.