ArcPad Scripting Object Model
MoveTo Method
See Also  Example  Send comments on this topic.
FromIndex
Required. A Long that specifies the original index of the layer.
ToIndex
Required. A Long that specifies the new index of the layer.
Layers Collection : MoveTo Method

Glossary Item Box

Description

Moves the layer at the specifed position to a new position in the layer drawing order.

Syntax

object.MoveTo ( FromIndex, ToIndex )

Parameters

FromIndex
Required. A Long that specifies the original index of the layer.
ToIndex
Required. A Long that specifies the new index of the layer.

Remarks

After calling the MoveTo method, the re-ordering of the layers will be reflected in the Layers dialog box.

Example

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

See Also

© 2013 All Rights Reserved.