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.
Syntax
Return Value
An Element object representing the duplicated element.
Remarks
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.
Exceptions
Exception | Condition |
---|---|
ElementCannotBeDuplicatedException | This Element cannot be duplicated. |
StaleScriptingObjectException | This object's associated internal object no longer exists. |
See Also
Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)