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


ISnappingResult Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

ISnappingResult Interface

ISnappingResult Interface

Product Availability

Available with ArcGIS Engine.

Members

Description
Read-only property Description Gets the description of the snap that occurred.
Read-only property Location Gets the location that was snapped.
Read-only property Type Gets the type of snap that occurred.

Remarks

This interface provides access to information regarding the last call to Snapping, including the location of the point location that satisfied the snap request, and information about the layer and snapping type associated with that location.


A reference to a snapping result is returned from IPointSnapper.Snap().  If not valid snap candidates were found during execution of the Snap method, a null ISnapResult is returned.  As a developer you should anticipate this and utilize a null pointer check before querying information returned.

.NET Samples

Angle Angle shape constructor (Code Files: AngleAngleCstr)

.NET Related Topics

Working with the ArcGIS snapping environment