Is there a way to loop through the TOC and preserve the nested hierarchy i.e. NOT the GetLayersAsFlattenedList() method. I also need to examine whether they are group layers or feature/raster layers as I go round.
Can't find anything obvious. I did try:
MapView.Active.Map.Layers
but that just returned me the project node, an item count of 1 - when I had numerous layers loaded in, that made no sense to me.
If anyone can help that would be great.