其他分享
首页 > 其他分享> > IActiveViewEvents_SelectionChanged 要素选择变化事件

IActiveViewEvents_SelectionChanged 要素选择变化事件

作者:互联网

 

        void IDockableWindowDef.OnCreate(object hook)
        {
            m_application = hook as IApplication;
            m_hookHelper = new HookHelperClass();
            m_hookHelper.Hook = hook;
            try
            {
                ESRI.ArcGIS.Carto.IActiveViewEvents_Event activeViewEvents = m_hookHelper.ActiveView as ESRI.ArcGIS.Carto.IActiveViewEvents_Event;
                activeViewEvents.SelectionChanged += new ESRI.ArcGIS.Carto.IActiveViewEvents_SelectionChangedEventHandler(SelectedChanged);
            }
            catch (Exception exp)
            {
                ErrorForm errorForm = new ErrorForm(exp.Message +"\r\n"+ exp.StackTrace);
                errorForm.Show();
            }
        }

 

 private void SelectedChanged()
        {
…………………………
…………………………
        }

 

标签:要素,IActiveViewEvents,ArcGIS,SelectionChanged,hook,Carto,new,ESRI
来源: https://www.cnblogs.com/yzhyingcool/p/11299963.html