闪烁显示多个元素

// 思路将feature加入至集合

IFeatureCursor pFeatureCursor = pFeatureLayer.Search(null, true);

IFeature pFeature = pFeatureCursor.NextFeature();

ISymbol symbol = CreateSimpleSymbol(pFeature.Shape.GeometryType);

if (pFeature != null)

{

IGeometryCollection pGeometryCollention =new  PolygonClass();

object missing = Type.Missing;

while (pFeature != null)

{

  // 将feature 加入至集合

pGeometryCollention.AddGeometryCollection(pFeature.Shape as IGeometryCollection);

pFeature = pFeatureCursor.NextFeature();

}

    axMapControl1.FlashShape((IGeometry)pGeometryCollention, 3,150 , symbol);

 }

posted @ 2012-09-05 15:16  oftenlin  阅读(167)  评论(0编辑  收藏  举报