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


IEditEvents4 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditEvents4 Interface
ArcGIS Developer Help

IEditEvents4 Interface

Provides access to more editor events. Implement it to listen for specific events that occur during an edit session.

Product Availability

Available with ArcGIS Desktop.

When To Use

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.

Members

Name Description
Method OnAngularCorrectionOffsetChanged Called when Angular Correction Offset is changed.
Method OnDistanceCorrectionFactorChanged Called when Distance Correction Factor is changed.
Method OnUseGroundToGridChanged Called when Ground to Grid use changes.

Classes that implement IEditEvents4

Classes Description
EditEvents4 Helper coclass for working with the nondefault outbound IEditEvents4 interface in VB.
Editor The Object Editor Extension.
[C#]

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.