I need to SET the Z-INDEX of a layer.
Let''s say there are 5 layers, each with any number of objects.
They are stacked like this:
layer 1
layer 2
layer 3, etc...
I want layer 3 to move UP, that is, to be between Layer 1 and 2.
How do I do this? Do I remove the layer from the Layers Collection and then insert it at a different point?
If I do this, will I lose all the layer''s objects?
Maybe I should create a new layer, insert into the desired position, move all the objects from the source layer to the new dest, and then remove the original?
Surely, there''s an easier way?
I see how to move objects within the zorder, but I need to move the layers themselves (and their objects, of-course).
Similar to Illustrator, or any other drawing program with layers.
ALSO:
How to get the current layer index for a layer? I found Layers.IndexOf(). Is that the only way. Does the layer itself not know its order?
Thanks for your help.