樱木 原文 AE开发----获取地图上当前选中的要素
Code1
int selCount = axMapControl1.Map.SelectionCount;
IEnumFeature pEnumFeature = axMapControl1.Map.FeatureSelection as IEnumFeature;
IFeature pFeature = pEnumFeature.Next();
while (pFeature != null)
{
string str1 = pFeature.OID.ToString();
string str2 = pFeature.get_Value(2).ToString();
pFeature = pEnumFeature.Next();
}
int