This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the Collection of snap agents used for snapping graphics.
Name | Description | |
---|---|---|
AddSnapAgent | Add a new snap agent to the environment. | |
ClearSnapAgents | Remove all snap agents. | |
DeleteSnapAgent | Remove specified snap agent from the environment. | |
SnapAgent | The snap agent at the specified index. The index argument is zero based. | |
SnapAgentCount | The number of snap agents. | |
SnapAgentOrder | An array of IDs indicating how agents should be ordered. | |
SnapShape | Snap the shape using the agents in the environment. | |
SnapTolerance | The snap tolerance in page units. |
Classes | Description |
---|---|
GraphicSnapEnvironment | Collection of Snap Agents used to snap a graphic point. |
PageLayout | Page Layout class contains maps and map surrounds. |
Use the IGraphicSnapEnvironment interface to manage the snap agents of the Pagelayout.
Methods are provided to count, add, delete and clear (delete all) the snap agents. This interface also provides access to the SnapTolerance.
Graphics are snapped into place by calling SnapShape. SnapShape in turn calls IGraphicSnap::SnapX and IGraphicSnap::SnapY on each active snap agent (in the order specified by IGraphicSnapEnvironment::SnapAgentOrder) until one of the snap agents returns True. SnapX and SnapY are separate calls because some agents, such as guides, may only act in one direction.
See also IGraphicSnap and IPageLayoutSnap.