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


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

IEngineEditEvents Interface

Provides access to the EngineEditor's events.

Product Availability

Available with ArcGIS Engine.

Description

This interface is new at ArcGIS 9.3.

Implement IEngineEditEvents to listen for specific events that occur during an edit session.

The following code example creates a listener to determine when an editing session has started. For more information refer to the "How to listen to edit events" and "How to wire ArcObjects.NET events" documents.

Members

Name Description
Method OnAbort Fires when an edit operation is aborted.
Method OnAfterDrawSketch Fires after the edit sketch is drawn.
Method OnBeforeStopEditing Fires before editing stops.
Method OnBeforeStopOperation Fires before an edit operation stops.
Method OnChangeFeature Fires when features are modified.
Method OnConflictsDetected Fires when editing conflicts are detected during save.
Method OnCreateFeature Fires when new features are created.
Method OnCurrentTaskChanged Fires when the current task changes.
Method OnCurrentZChanged Called when the CurrentZ changes.
Method OnDeleteFeature Fires when features are deleted.
Method OnSaveEdits Fires when edits are saved.
Method OnSelectionChanged Fires when the selection changes.
Method OnSketchFinished Fires when the edit sketch is finished.
Method OnSketchModified Fires when the edit sketch is modified.
Method OnStartEditing Fires when editing begins.
Method OnStartOperation Fires when an edit operation starts.
Method OnStopEditing Fires when editing ends.
Method OnStopOperation Fires when an edit operation stops.
Method OnTargetLayerChanged Fires when the target layer changes.
Method OnVertexAdded Fires when a vertex is added to the edit sketch.
Method OnVertexDeleted Fires when a vertex is deleted from the edit sketch.
Method OnVertexMoved Fires when a vertex is moved in the edit sketch.

Classes that implement IEngineEditEvents

Classes Description
EngineEditor A singleton object representing the Engine editing environment.
[C#]

Private EngineEditor m_EngineEditor = new EngineEditorClass();
private IEngineEditEvents_Event m_EngineEditEvents;

private void MainForm_Load(object sender, EventArgs e)
{
    m_EngineEditEvents = (IEngineEditEvents_Event)m_EngineEditor;
    m_EngineEditEvents.OnStartEditing += new IEngineEditEvents_OnStartEditingEventHandler(OnStartEditingMethod);
}

private void OnStartEditingMethod()
{
  System.Windows.Forms.MessageBox.Show("Editing Started");
}

[Visual Basic .NET]

Private m_EngineEditor As EngineEditor = New ESRI.ArcGIS.Controls.EngineEditorClass()
Private m_EngineEditEvents As IEngineEditEvents_Event

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As EventArgs) Handles MyBase.Load
    m_EngineEditEvents = CType(m_EngineEditor, IEngineEditEvents_Event)
    AddHandler m_EngineEditEvents.OnStartEditing, AddressOf OnStartEditingMethod
End Sub

Private Sub OnStartEditingMethod()
  System.Windows.Forms.MessageBox.Show("Editing Started")
End Sub