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


IEditProperties2.StickyMoveTolerance Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

IEditProperties2.StickyMoveTolerance Property

Controls the sticky move tolerance.

[Visual Basic .NET]
Public Property StickyMoveTolerance As Integer
[C#]
public int StickyMoveTolerance {get; set;}

Product Availability

Available with ArcGIS Desktop.

Remarks

StickyMoveTolerance determines the minimum distance (measured in pixels) the cursor must move before the edit is completed.  This can be helpful in preventing small inadvertent shifts of features when editing. The default value is 0.

[C#]

Get a reference to IApplication by hook in the OnCreate method.

    private void SetStickyMoveTolerance()
    {
      IEditor m_editor;
      UID uID=new UID();
      uID.Value="esriEditor.Editor";
      m_editor=m_application.FindExtensionByCLSID(uID) as IEditor;
      IEditProperties2 editProperties2=  m_editor
      as  IEditProperties2;
      editProperties2.StickyMoveTolerance=
    5
    }
[Visual Basic .NET]

A reference to app (IApplication) comes from OnCreate::hook parameter.
 

Public Sub SetStickyMoveTolerance()
    Dim editor as IEditor
    Dim editProperties2 As IEditProperties2
    Dim uID As New UID 
    uID.Value="esriEditor.Editor"
    m_Editor=app.FindExtensionByCLSID(uID)
    'QI
    editProperties2=editor

    editProperties2.StickyMoveTolerance=5
End Sub

See Also

IEditProperties2 Interface