IGeometry polygon;
IActiveView pActiveView;
IEnumFeature pEnumFeature;
IFeature pFeature;
IFeature pFirstFeature;
pActiveView = (IActiveView)pMap;
if (pMap.SelectionCount == 0)
{
return;
}
pEnumFeature = pMap.FeatureSelection as IEnumFeature;
pEnumFeature.Reset();
pFirstFeature = pEnumFeature.Next();
pFeature = pEnumFeature.Next();