ArcObjects Library Reference (Carto)  

ISnapGuides Interface

Provides access to members that control the Snapping guides.

Product Availability

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

Members

Description
Method AddGuide Adds a guide at the specified position. The position is specified in page units.
Read/write property AreVisible Indicates if snapping guides are visible.
Method Draw Draw a fine line showing exactly where objects will snap.
Method DrawHighlight Draw a highlight around the snap line for a nice visual effect.
Read/write property DrawLevel Level where guides are drawn.
Read/write property Guide The nth guide. The position is specified in page units.
Read-only property GuideCount The number of guides.
Method RemoveAllGuides Removes all the guides.
Method RemoveGuide Removes the nth guide.

CoClasses that implement ISnapGuides

CoClasses and Classes Description
SnapGuides Snapping Guides for use with a PageLayout.

Remarks

You can use guides in the page layout view to align elements on the page.

The PageLayout object has two SnapGuides objects, one for managing horizontal guides, and one for managing vertical guides. Use IPageLayout::VerticalSnapGuides or IPageLayout::HorizontalSnapguides to obtain a reference to the desired SnapGuides object.

Each SnapGuides object manages an internal collection of individual guides. Use ISnapGuides to add a new guide, remove a guide, and turn the visibility of the guides on or off.

.NET Related Topics

Working with PageLayout elements |