ReorderServObjByID Method

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 ID (the ID property). The position is specified by the ID of the service object, to whose position the repositioned service object will be placed.

Applies to: Page object, Shape object

Syntax

[[Let] booleanRet =] object.ReorderServObjByID ( servObjIDFrom, servObjIDTo )

The ReorderServObjByID method syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
servObjIDFrom Required. An expression that returns a Long value. The ID (ID property) of the service object to be repositioned.
servObjIDTo

Required. An expression that returns a Long value. The ID (ID property) of the service object to whose position the service object specified by servObjIDFrom will be placed.

booleanRet Optional. A Boolean type variable.

Remarks

If there is no service object with the servObjIDFrom or servObjIDTo ID in the collection, the ReorderServObjByID method doesn't reposition the service object and returns False. If repositioning has been successful, the method returns True.

 

See Also

ID property, RemoveAllServObjs method, RemoveServObj method, RemoveServObjByID method, ReorderServObj method, ServObj method, ServObjByID method, ServObjsNum method, ServObj object