AnsweredAssumed Answered

How to acces to a layer in a groupLayer

Question asked by jongarrido on Jul 16, 2014
Latest reply on Jul 17, 2014 by jongarrido

Hi,

I'm attempting to access to a FeatureLayer in a GropuLayer.  I'm looping through layers in the TOC and when getting the IGroupLayer I don't know what to do next.

 

IMap myMap = ArcMap.Document.ActivatedView.FocusMap;

for (int i = 0; i < myMap.LayerCount; i++)

            {

                if (myMap.Layer[i] is IGroupLayer)

                {

                    IGroupLayer igroup = myMap.Layer[i] as IGroupLayer;

 

                    //what to do...

                   

                }

}

Outcomes