转自 C#+ArcGIS Engine 获取地图中选中的要素

C#+ArcGIS Engine 获取地图中选中的要素
提供一种简单遍历获取地图中选中要素的方法,代码如下:

List<IFeature> pList = new List<IFeature>();//用于存储选中的要素
IEnumFeature pEnumFeature = axMapControl1.Map.FeatureSelection as IEnumFeature;
IFeature pFeature = pEnumFeature.Next();
while(pFeature!=null)
{
   pList.Add(pFeature);
   pFeature = pEnumFeature.Next();
}

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案