AnsweredAssumed Answered

Need a piece of code to check FeatureLayer and more ...

Question asked by shaningesri on Oct 20, 2017
Latest reply on Oct 31, 2017 by shaningesri

I need a piece of code to check if a layer in ArcMap is a FeautureLayer.

                IMap pMap = m_mxDoc.FocusMap;
                for (int i = 0; i < m_mxDoc.Maps.Count; i++) {
                    ILayer pLayer = pMap.Layer[i];
                    //if (typeof(pMap.Layer[i]) is IFeatureLayer )   ???  How to code here?

Appreciate if you can help.