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


ISnappingFeedback.Update Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

ISnappingFeedback.Update Method

Sets the current mouse location and snap result.

[Visual Basic .NET]
Public Sub Update ( _
    ByVal snappingResult As ISnappingResult, _
    ByVal hdc As Integer _
)
[C#]
public void Update (
    ISnappingResult snappingResult,
    int hdc
);
[C++]
HRESULT Update(
  ISnappingResult* snappingResult,
  long hdc
);
[C++]

Parameters snappingResult [in]
snappingResult is a parameter of type ISnappingResult hdc [in] hdc is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Remarks

Update notifies the snapping feedback object that changes in the snap location may have occurred.  The Update method uses the snapResult object that is passed in to display the snapping symbol and snap tip if a snap occurred, and draws them on the hDC passed in.  Calls to Update are usually made in conjunction with calls to IPointSnapper.Snap() inside a tool�s MouseMove() method.  Even if a null snap result is returned, your code should ensure that Update is called; a null SnapResult passed into the Update method() is fine.

See Also

ISnappingFeedback Interface

.NET Samples

Angle Angle shape constructor (Code Files: AngleAngleCstr)