I am using ArcObjects in a C# addin with ArcGIS 10.3.1 for Desktop.
I'm trying to stop a user from removing certain layers from the Table of contents. I have my listeners setup for IActiveViewEvents_ItemDeletedEventHandler
but want to know how/what to capture the layer that is removed? Can this be done, or can I only inform the user that they removed something?
IOperationStack.Undo
, assuming it's already been added to the stack when ItemDeleted fires.