This document is archived and information here might be outdated. Recommended version. |
Snapping types.
Constant | Value | Description |
---|---|---|
esriSnappingTypeNone | 0 | No snap. |
esriSnappingTypePoint | 1 | Snap to point. |
esriSnappingTypeEndpoint | 2 | Snap to endpoint. |
esriSnappingTypeVertex | 4 | Snap to vertex. |
esriSnappingTypeEdge | 8 | Snap to edge. |
esriSnappingTypeMidpoint | 16 | Snap to midpoint. |
esriSnappingTypeIntersection | 32 | Intersection snapping. |
esriSnappingTypeTangent | 64 | Tangent snapping. |
Use the esriSnappingType enumeration to define which snapping types should be evaluated when IPointSnapper.Snap is called. An individual snapping type can be specified, or a combination of snapping types may be used. The combination of snapping types is accomplished using a bit mask
Combinations can be specified using either of the following methods:
snappingEnvironment.SnappingType = (esriSnappingType)63;
or
snappingEnvironment.SnappingType = esriSnappingType.esriSnappingTypeEdge +
esriSnappingType.esriSnappingTypeEndpoint;