Places the service object into the specified position in the service object collection of the group/page. The repositioned service object is specified by its index in the service object collection of the page/group. The position is specified by the new index the service object will have after repositioning.
Applies to: Page object, Shape object
[[Let] booleanRet =] object.ReorderServObj ( indexFrom, indexTo ) |
The ReorderServObj method syntax has these parts:
Part | Description |
object | Required. An expression that returns an object in the Applies to list. |
indexFrom | Required. An expression that returns a Long value. The index of the service object to be repositioned in the service object collection of the group/page. |
indexTo | Required. An expression that returns a Long value. The index of the position into which the service object will be placed. |
booleanRet | Optional. A Boolean type variable. |
If either the indexFrom or indexTo are less than 1 or greater than the number of service objects in the group/page, the ReorderServObj method doesn't reposition the service object and returns False. If the service object has been repositioned successfully, the method returns True. Use the ServObjsNum method to find out the number of service objects in the group/page.
Note, that if indexFrom is greater than indexTo, then when a service object with the indexFrom index is repositioned, the indices of all service objects starting from indexTo and to (indexFrom - 1) will be increased by 1. If indexTo is greater than indexFrom, then when a service object with the indexFrom index is repositioned, the indices of all service objects starting from (indexFrom + 1) and to indexTo will be decreased by 1.
See Also |
RemoveAllServObjs method, RemoveServObj method, RemoveServObjByID method, ReorderServObjByID method, ServObj method, ServObjByID method, ServObjsNum method, ServObj object |