Is there a way to get Field-data or geometry from a feature as it is being deleted? I need the ID of my deleted feature to use in further program logic, and it seems I can not get this in the layer's OnFeatureDeleted event...
Before you delete the feature you must select it via script or UI. Therefore you have the Map.SelectionBookmark that you can find all of the details of the feature.
If you use the Map.OnSelectionChanged event you can discover the details of the bookmark and traverse to the details. Write all the details you need before you delete it.
Before you delete the feature you must select it via script or UI. Therefore you have the Map.SelectionBookmark that you can find all of the details of the feature.
If you use the Map.OnSelectionChanged event you can discover the details of the bookmark and traverse to the details. Write all the details you need before you delete it.