ArcObjects Library Reference (Carto)  

IMeasuredGrid Interface

Provides access to the members that control the lines that make up the map grid.

Product Availability

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

Members

Description
Read/write property FixedOrigin Indicates if the origin is read from the XOrigin and YOrigin properties (true) or if it is computed dynamically from the data frame (false).
Read/write property Units The units for the intervals and origin.
Read/write property XIntervalSize The interval between grid lines along the X axis.
Read/write property XOrigin The origin of the grid on the X axis.
Read/write property YIntervalSize The interval between grid lines along the Y axis.
Read/write property YOrigin The origin of the grid on the Y axis.

CoClasses that implement IMeasuredGrid

CoClasses and Classes Description
Graticule A map grid that divides the map with meridians and parallels.
MeasuredGrid A map grid that divides the map into a grid of units in any coordinate system.

Remarks

The IMeasuredGrid interface is implemented by the MeasuredGrid and Graticule coclasses. It exposes information on the origins, intervals, and units of the grid.

If you set FixedOrigin to False, the origin is computed from the data frame instead of from the XOrigin and YOrigin properties. Defining these properties will shift the grid. For instance you can create a grid with a 10 interval showing on meridians 5, 15, 25, etc. by shifting the grid 5 in X.

Units need not be populated for a graticule. For a measured grid they can be set to any esriUnits constant, if this is not specified the map units will be used.

The XIntervalSize and YIntervalSize properties define the spacing of the meridians and parallels of the grid.

See Also

IMapGrid Interface | ICustomOverlayGrid Interface | IGraticule Interface | IIndexGrid Interface | IMeasuredGrid Interface