I have a problem with an editor extension in an Add-In for ArcGIS 10. The editor extension listens on different events occuring on shapefile layers via registering listeners:
mEditEvents.OnChangeFeature += OnChangeFeature; mEditEvents.OnCreateFeature += OnCreateFeature; mEditEvents.OnDeleteFeature += OnDeleteFeature;
All these callbacks get are a parameter of type IObject, which can be cast to IFeature. With this IFeature I can get the feature class and its alias name (IFeature.Class.AliasName) which seems to be the name of the shapefile associated with this feature, but I want the name of the layer associated with this feature which can be different from the shapefile's name.
Is there any way how to get this layer name?
Thanks in advance!
I found a solution (see my comment below) - thanks for the help!