Pageflex Document Action API
MoveBefore Method (parent, nextSibling)
Namespaces > Pageflex.Scripting > Element > MoveBefore(Element, Element)
Moves this Element to a different place in the document tree.
Syntax
Parameters
Remarks
This element is removed from its current location in the document tree and inserted
as a child of the parent element, just before the nextSibling element. If nextSibling is nullNothingnullptr,
this element is inserted as the last child of the parent element.
Note: changing the order of sibling shapes does not change their draw order. See instead NextShapeToDraw.
Exceptions
Exception | Condition |
---|---|
InvalidChildElementTypeException | An element of this type cannot be a child of the specified parent. |
InvalidContainerException | The specified parent is not a container. |
WrongParentException | parent is not the parent of nextSibling. |
ArgumentNullException | The value supplied for parent was nullNothingnullptr. |
StaleScriptingObjectException | This object's associated internal object no longer exists. |
See Also
Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)