Select to view content in your preferred language

How to be notified of changes in TOCDisplayView layers properties (name, ...) in C#

653
2
09-28-2010 11:09 PM
StephaneGoud
New Contributor
Hello,
we developed an extension to ArcEditor using C# and created a new dock window to represent specific information for some of the layers added to the TOCView.

What we want is, for instance, when a layer name is modified in the TOCView, being notified so we can update the display of our new dock window accordingly.

It looks like we cannot register to the IActiveViewEvents for the TOCDisplayView object
(we succeded to register to this kind of interface only on a Map object or on a PageLayout object).

Do you have any way to be notified of any update in the TOC. Detecting items reordering is ok using the map object but detecting layer name change cannot be done that way...

Thank you very much

Stephane
0 Kudos
2 Replies
JeyasinghNavaneethan
Deactivated User
Respond to IActiveViewEvents ContentsChanged event.
0 Kudos
StephaneGoud
New Contributor
Thank you! The confusion was whether we had to register to the TOCDisplayView or not as this object implements the interface.

Registering to the Map object works fine.

Cheers
0 Kudos