获得Map的选择集

 ISelection selection = m_hookHelper.FocusMap.FeatureSelection;
            IEnumFeatureSetup iEnumFeatureSetup = selection as IEnumFeatureSetup;
            iEnumFeatureSetup.AllFields = true;
            IEnumFeature enumFeature = iEnumFeatureSetup as IEnumFeature;
            enumFeature.Reset();
            IFeature feature = enumFeature.Next();

posted @ 2014-11-21 13:03  忆如梨花  阅读(200)  评论(0编辑  收藏  举报