IHTMLElement2::applyElement Method
Makes the element either a child or parent of another element.
Syntax
HRESULT applyElement( IHTMLElement *apply, BSTR where, IHTMLElement **applied );
Parameters
- apply
- [in] A pointer to an IHTMLElement interface that becomes the child or parent of the current element.
- where
- [in] A BSTR that specifies one of the following values.
- outside
- Default. Specified element becomes a parent of the current element.
inside- Specified element becomes a child of the current element, but contains all the child elements of the current element.
- applied
- [out, retval] A pointer to an IHTMLElement interface that receives a reference to the applied element.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also