ContainerElement.reorderElements (Method)

Reorders the elements contained inside the container element.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required The ID of the page or soft template on which the container element resides.
containerInstanceID ContainerElementInstanceID Required A container element's instance ID.
elementInstanceArray ElementInstanceIDStruct_Array Required An array of structures containing IDs of the elements contained in the container element in the order in which they should be rendered and the state of the element instances. Note an instanceID for all elements must be specified.

Context:

License Requirements (none)
Permission Requirements ContributorOrServerCode
Deny Context (none)
Require Context (none)
Author Lock Required
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
1000301 The element $1 does not exist on the specified page.
1000310 All elements contained in the container element are not present in the element instance array.
1000311 All the specified element instances are not contained by the specified container element.

Notes:

None