Original User: maplogic
Sol,
Thanks for your response. Yes, I am aware I could recreate the process manually by creating a selection set from a query using the rectangle of the current extent. In fact I have written some code that does that for a different purpose.
However, I am trying to create a process that is time efficient. And to create a new query on the layer every time the map is panned/zoomed/etc. is first of all much slower than whatever process Esri has baked into the legend, and is also duplicating what the legend has already done. That's why I'd like to see if I can just get the record set from the legend.
To explain a little more as to why I want this, we have an extension that updates a legend's text labels based on information in its attribute table. For example, you may want to have the sum of the acreage of each legend symbol to show up in the legend. I want to make this extension responsive to the dynamic legend without adding too much overhead to the map refresh.
Thanks,
Babak