How to move a layer's position in a group

460
2
Jump to solution
09-06-2022 12:27 AM
Lazyman
New Contributor II

Hi, I want to move a layer's position in a group, it seems that the MapControl.MoveLayerTo() and IMap.MoveLayer() do not support layer in a group.

It makes me confused, can you give an idea, please?

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

You can use IMapLayers.MoveLayerEx

IMapLayers you can get by casting IMap object.

View solution in original post

0 Kudos
2 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

You can use IMapLayers.MoveLayerEx

IMapLayers you can get by casting IMap object.

0 Kudos
Lazyman
New Contributor II

Yes, thank you!

0 Kudos