Duplicate Method

Pageflex Document Action API

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
C# Visual Basic Managed C++
public Element Duplicate ()
Public Function Duplicate As Element
public:
Element^ Duplicate ()
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.

Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)