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


esriSnappingType Constants (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Constants > E > esriSnappingType Constants (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

esriSnappingType Constants

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.

Product Availability

Available with ArcGIS Engine.

Remarks

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

[C#]

Combinations can be specified using either of the following methods:

snappingEnvironment.SnappingType=(esriSnappingType)63;

or

snappingEnvironment.SnappingType=esriSnappingType.esriSnappingTypeEdge + 
esriSnappingType.esriSnappingTypeEndpoint;


 

.NET Related Topics

Working with the ArcGIS snapping environment