This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditProperties2 Interface > IEditProperties2.StickyMoveTolerance Property (ArcObjects .NET 10.4 SDK) |
Controls the sticky move tolerance.
[Visual Basic .NET] Public Property StickyMoveTolerance As Integer
[C#] public int StickyMoveTolerance {get; set;}
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.
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
}
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