 δĺôǣ
1ArcEngineõѡ񹤾ߣʵֵѡѡ״״״ҪأѡҪأֱɣԺٷֱдѡѡĴ
2ɵĽѡҪȡֻҪȡҪأһȻˡ
 
//Ҫѡ
        private void navButton4_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
        {   
            if (axMapControl1.Map.LayerCount <= 0) return;
            for (int i = 0; i < axMapControl1.Map.LayerCount;i++ )
            {
                selected_featureLayer = axMapControl1.Map.get_Layer(i) as IFeatureLayer;

           //жҪѡͼ㣬ؼ
                if (selected_featureLayer.FeatureClass.ShapeType != esriGeometryType.esriGeometryPolyline)
      
    selected_featureLayer.Selectable = false;
            
            
            }
         //ѡ
            ICommand pCommand;
            pCommand = new ESRI.ArcGIS.Controls.ControlsSelectFeaturesToolClass();
            pCommand.OnCreate(axMapControl1.Object);
            pCommand.OnClick();
            axMapControl1.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool;
            
    עٲҪдˣȻ޷ִѡˣм
        }



 //ȡѡҪصķ

if (axMapControl1.Map.LayerCount <= 0)
             {
                 MessageBox.Show("ͼΪ");
                 return;
             }
            IEnumFeature EnumFeature = axMapControl1.Map.FeatureSelection as IEnumFeature; 
            EnumFeature.Reset();
            IFeature feature;
            feature = EnumFeature.Next();
             if (feature==null )
            {
                MessageBox.Show("ѡҪ");
                return;
             
             }
           
             while (feature!=null )
             {
                //Ĵ
                feature = EnumFeature.Next();
             }



