This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditEvents4 Interface (ArcObjects .NET 10.4 SDK) |
Provides access to more editor events. Implement it to listen for specific events that occur during an edit session.
Provides access to more editor events. Implement it to listen for specific events that occur during an edit session. The events are fired when the ground to grid correction properties on IEditProperties2 are changed.
Description | ||
---|---|---|
OnAngularCorrectionOffsetChanged | Called when Angular Correction Offset is changed. | |
OnDistanceCorrectionFactorChanged | Called when Distance Correction Factor is changed. | |
OnUseGroundToGridChanged | Called when Ground to Grid use changes. |
CoClasses and Classes | Description |
---|---|
EditEvents4 | Helper coclass for working with the nondefault outbound IEditEvents4 interface in VB. |
Editor | The Object Editor Extension. |
The following code shows how to wire edit events in C#.
public void WireEditEvents4()
{
UID editorUid=new UIDClass();
editorUid.Value="esriEditor.Editor";
//You can get app from ICommand :: OnCreate() hook parameter
IEditor editor=app.FindExtensionByCLSID(editorUid) as IEditor;
((IEditEvents4_Event)editor).OnAngularCorrectionOffsetChanged += new IEditEvents4_OnAngularCorrectionOffsetChangedEventHandler(OnAngularCorrectionOffsetChanged);
}
void OnAngularCorrectionOffsetChanged()
{
//To do:
}
For more information see How to listen to edit events.