Exemple #1
0
        private void axMapControl1_OnAfterScreenDraw(object sender, IMapControlEvents2_OnAfterScreenDrawEvent e)
        {
            IActiveView            pActiveView           = axPageLayoutControl1.ActiveView.FocusMap as IActiveView;
            IDisplayTransformation displayTransformation = pActiveView.ScreenDisplay.DisplayTransformation;

            displayTransformation.VisibleBounds = axMapControl1.Extent;
            axPageLayoutControl1.ActiveView.Refresh();
            BasicMethod.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
        }
Exemple #2
0
 private void axMapControl1_OnViewRefreshed(object sender, IMapControlEvents2_OnViewRefreshedEvent e)
 {
     axTOCControl1.Update();
     BasicMethod.CopyAndOverwriteMap(axMapControl1, axPageLayoutControl1);
 }