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