Edit event listener


PurposeThe add-in in this sample provides the ability to understand when various edit events are fired in response to changes in the editing environment or user actions. Using this sample can help you determine which events are appropriate to listen for in various situations, and understand what causes an event to fire.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start Visual Studio, open the solution file, and build the project.
  2. Start ArcMap, click the Customize menu, and click Add-In Manager. The Add-In Manager dialog box opens.
  3. Using the Browse for Add-In command, browse to the location of the add-in and select the .esriAddIn file located in the projects bin\Debug folder.
  4. On the Customize dialog box, drag the Edit Events command from the Add-In Controls category to a toolbar.
  5. Add one or more editable data sources to ArcMap.
  6. Click the Edit Events command. The Edit Events window opens.
  7. Click the Select Events tab. See the following screen shot on the left.
  8. Select one or more edit events in the list for which you want to receive notification, then click the Listen to Events tab.
  9. Perform one or more actions in the editor. Events that fire as a result of the action are listed on the Listen to Events tab. See the following screen shot on the right.
  10. Right-click in the list to clear it.


  11. Screen shot showing the Select Events and Listen to Events tabs.

EventListener.cs Class containing implementation to listen to edit events.
EnumHelper.cs Helper class for working with enumerations.
EditorEventsDialogCommand.cs Class containing ICommand implementation.
EditorEventsDialog.cs Class containing dockable window implementation.
Download the C# files
EventListener.vb Class containing implementation to listen to edit events.
EnumHelper.vb Helper class for working with enumerations.
EditorEventsDialogCommand.vb Class containing the add-in button that opens the Edit Events dockable window.
EditorEventsDialog.vb Class containing the add-in dockable window implementation
Download the VB.NET files

Download the files for all languages

See Also:

Working with editing events




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced