Applies the given element at the given location.
Syntax
HRESULT applyElement( IHTMLElement *apply, BSTR where, IHTMLElement **applied );
Parameters
- apply
- Address of an IHTMLElement interface that specifies the element to apply.
- where
- String (BSTR) that specifies where to apply the element. It can be one of the following strings:
beforeBegin Applies the element immediately before the element. afterBegin Applies the element after the start of the element but before all other content in the element. beforeEnd Applies the element immediately before the end of the element but after all other content in the element. afterEnd Applies the element immediately after the end of the element. - applied
- Address of a pointer to an IHTMLElement interface that specifies the element applied.
Return Value
Returns S_OK if successful, or an error code otherwise.
See Also