IMarkupServices::CloneElement Method

Creates a duplicate of an element.

Syntax

HRESULT CloneElement(
    IHTMLElement *pElemCloneThis,
    IHTMLElement **ppElementTheClone
);

Parameters

  • pElemCloneThis
    [in] Pointer to an IHTMLElement interface that returns the element to clone.
  • ppElementTheClone
    [out] Address of a pointer to an IHTMLElement interface that returns the newly created element.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IMarkupServices::CreateElement