Is it possible to use the new (not classic) snapping functionality when editing the vertices of a polygon feature in ArcEngine 10. I would like editing vertices to behave exactly the same as editing vertices in ArcMap.
I know that with ArcEngine you pretty much have to control everything. So when we are creating the polygon we use the following function to capture the new snapped point using the snapping feedback object.
Is there some events I can tap into that'll allow me to tap into the editing vertices and update the mouse pointer to a snapped location?
/// <summary>
/// Updates a point to a snapped point
/// </summary>
/// <param name="currentPoint"></param>
/// <returns></returns>
private IPoint UpdateSnappedPoint(IPoint currentPoint)
{
ISnappingResult snapResult = null;
IPoint point = currentPoint;
if (_snapEnabled && _snappingFeedBack != null)
{
snapResult = _snappingEnvironment.PointSnapper.Snap(point);
_snappingFeedBack.Update(snapResult, 0);
}
if (snapResult != null)
point = snapResult.Location;
return point;
}
Niroshan