Monday, 27 April 2015

arcobjects - How to change the view from layout view to data view using c# code in ArcMap?



How to change the view from layout view to data view using c# code?




Answer



You should use the IMxDocument.ActiveView Property.


You can use something like this:


IMxDocument mxDoc=(IMxDocument)m_app.Document;
mxDoc.ActiveView = mxDoc.FocusMap ; //if you want to cast to the focused map

No comments:

Post a Comment