IMarkupServices::CreateElement Method

Creates an element with the specified tag.

Syntax

HRESULT CreateElement(
    ELEMENT_TAG_ID tagID,
    OLECHAR *pchAttributes,
    IHTMLElement **ppElement
);

Parameters

  • tagID
    [in] Value of type ELEMENT_TAG_ID that specifies the type of tag to create.
  • pchAttributes
    [in] Pointer to a variable of type OLECHAR that specifies the attributes of the element.
  • ppElement
    [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::CloneElement