I'm trying to regenerate a Legend in a Pagelayout whenever the layers visibility are changed in the TocControl. What is the best way to catch when a layer visibility is changed?
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
Watch for the VisibilityChanged event on the feature layer that you want to track. Something like the following (taken from here):
A little more information is available here and here. The links provided above point to ArcGIS 9.x content. If you plan on using ArcGIS 10, documentation is available here. |
|||||||||||||
|