How to Zoom Selected

Mar 15, 2011 at 5:57 PM

I'm trying to figure out how to zoom to a selected group of shapes.  I set the Map FunctionMode to Select and that seems to select the shapes, but I'm at a loss to find the event I need to handle, and how to get the rectangle for the selection to use it to set the map zoom level.  Anyone got a sample?



Mar 17, 2011 at 6:08 AM
Edited Mar 17, 2011 at 6:09 AM


this seems to do what your asking for

IEnvelope region;  



_region = new Extent


mapControl.ViewExtents = _region;


Maybe you can help me, as i was looking for a way of obtaining the extent or envelope of the rectangle which was drawn to make the selection