Pageflex Document Action API
Duplicate Method
Namespaces > Pageflex.Scripting > Element > Duplicate()
Creates a copy of the element and inserts it as the element's next sibling.


An Element object representing the duplicated element.

All of the element's descendant elements are also duplicated.
Use MoveBefore(Element, Element) to move the duplicated element to a different place in the document tree.

Exception | Condition |
---|---|
ElementCannotBeDuplicatedException | This Element cannot be duplicated. |
StaleScriptingObjectException | This object's associated internal object no longer exists. |

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)