ArcObjects Library Reference (Controls)  

ISnappingEnvironment.SnappingType Property

The types of snapping currently being considered.

[Visual Basic .NET]
Public Property SnappingType As esriSnappingType
[C#]
public esriSnappingType SnappingType {get; set;}
[C++]
HRESULT get_SnappingType(
  esriSnappingType* Options
);
[C++]
HRESULT put_SnappingType(
  esriSnappingType Options
);
[C++]

Parameters

Options [out, retval]

  Options is a parameter of type esriSnappingType

Options [in]

  Options is a parameter of type esriSnappingType

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.

 

Snapping Types are evaluated in a fixed order defined below:

  1. esriSnappingTypePoint
  2. esriSnappingTypeIntersection
  3. esriSnappingTypeEndpoint
  4. esriSnappingTypeVertex
  5. esriSnappingTypeMidpoint
  6. esriSnappingTypeTangent
  7. esriSnappingTypeEdge

SnappingType is an application-level setting.

See Also

ISnappingEnvironment Interface