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


ISnapGrid Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IS > ISnapGrid Interface
ArcGIS Developer Help

ISnapGrid Interface

Provides access to members that control the Snapping grid.

Product Availability

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

Members

Name Description
Method Draw Draw the grid.
Read/write property HorizontalSpacing The horizontal distance between grid points.
Read/write property IsVisible Indicates if the snapping grid is visible.
Read/write property VerticalSpacing The vertical distance between grid points.

Classes that implement ISnapGrid

Classes Description
SnapGrid Snapping Grid for use with a PageLayout.

Remarks

The layout view supports a snap grid, which is a grid of reference points on the layout used to help position elements. The grid may be used as a visual indicator of size and position, or it may be used to snap elements into position.
The primary interface on the SnapGrid object is ISnapGrid. Use this interface to change the grid�s horizontal and vertical spacing and control whether or not the grid is visible.