Let's say I want to know the extent of every MapView in my current project. I can retrieve the extent by doing something with the MapView.Extent object.
What I can't see is how to get a list of MapViews? I can:
- Extract a list of every Map in the current project by using ArcGIS.Desktop.Core.Project.Current.GetItems<MapProjectItem>() and then calling GetMap() on each item
- Extract the parent Map for each MapView by calling MapView.Map
- Extract the active MapView extent by calling MapView.Active
- Do things with MapPanes, but only if the map is in a layout
I might be missing something obvious, so does anyone have any clues?