布局视图地图平移

IPoint centerPoint;

centerPoint.Project(PageCtrl.ActiveView.FocusMap.SpatialReference);

IActiveView pActiveView = PageCtrl.ActiveView.FocusMap as IActiveView;
IEnvelope pEnvelope = (IEnvelope)pActiveView.Extent;
pEnvelope.CenterAt(centerPoint);
pActiveView.Extent = pEnvelope;
pActiveView.Refresh();

 

posted on 2017-06-15 13:49  janehlp  阅读(297)  评论(0编辑  收藏  举报