ArcGis Go to XY功能代码C#

IPoint point = new PointClass();   
point.PutCoords(x,y);
IEnvelope pEnvelope= this.m_hookHelper.ActiveView.Extent;
pEnvelope.CenterAt(point);
this.m_hookHelper.ActiveView.Extent = pEnvelope.Envelope;
this.m_hookHelper.ActiveView.ScreenDisplay.UpdateWindow();
this.m_hookHelper.ActiveView.Refresh();

 

posted @ 2018-11-23 20:21  yzhyingcool  阅读(739)  评论(0编辑  收藏  举报