Moves the layer at the specifed position to a new position in the layer drawing order.
object.MoveTo ( FromIndex, ToIndex ) |
- FromIndex
- Required. A Long that specifies the original index of the layer.
- ToIndex
- Required. A Long that specifies the new index of the layer.
After calling the MoveTo method, the re-ordering of the layers will be reflected in the Layers dialog box.
Rearranges the drawing order of the layers in the sample San Diego ArcPad.apm included with ArcPad.
MoveTo Example (VBScript) | Copy Code |
---|---|
Sub RearrangeSDLayers Map.Layers.MoveToTop "Roads" Map.Layers.MoveToBottom "Aerial Photo" Map.Layers.MoveTo 4,2 End Sub |