This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditEvents Interface (ArcObjects .NET 10.5 SDK) |
Provides access to the EngineEditor's events.
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.
Description | ||
---|---|---|
OnAbort | Fires when an edit operation is aborted. | |
OnAfterDrawSketch | Fires after the edit sketch is drawn. | |
OnBeforeStopEditing | Fires before editing stops. | |
OnBeforeStopOperation | Fires before an edit operation stops. | |
OnChangeFeature | Fires when features are modified. | |
OnConflictsDetected | Fires when editing conflicts are detected during save. | |
OnCreateFeature | Fires when new features are created. | |
OnCurrentTaskChanged | Fires when the current task changes. | |
OnCurrentZChanged | Called when the CurrentZ changes. | |
OnDeleteFeature | Fires when features are deleted. | |
OnSaveEdits | Fires when edits are saved. | |
OnSelectionChanged | Fires when the selection changes. | |
OnSketchFinished | Fires when the edit sketch is finished. | |
OnSketchModified | Fires when the edit sketch is modified. | |
OnStartEditing | Fires when editing begins. | |
OnStartOperation | Fires when an edit operation starts. | |
OnStopEditing | Fires when editing ends. | |
OnStopOperation | Fires when an edit operation stops. | |
OnTargetLayerChanged | Fires when the target layer changes. | |
OnVertexAdded | Fires when a vertex is added to the edit sketch. | |
OnVertexDeleted | Fires when a vertex is deleted from the edit sketch. | |
OnVertexMoved | Fires when a vertex is moved in the edit sketch. |
CoClasses and Classes | Description |
---|---|
EngineEditor | A singleton object representing the Engine editing environment. |
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"); }
Private
m_EngineEditorAs
EngineEditor=New
ESRI.ArcGIS.Controls.EngineEditorClass()Private
m_EngineEditEventsAs
IEngineEditEvents_EventPrivate Sub
MainForm_Load(ByVal
senderAs
System.Object,ByVal
eAs
EventArgs)Handles
MyBase.Load m_EngineEditEvents=CType
(m_EngineEditor, IEngineEditEvents_Event)AddHandler
m_EngineEditEvents.OnStartEditing,AddressOf
OnStartEditingMethodEnd Sub Private Sub
OnStartEditingMethod() System.Windows.Forms.MessageBox.Show("Editing Started")End
Sub