Click to return to the Reusing Browser Technology home page    
IHTMLElement2::addFilter ...     IHTMLElement2::attachEven...     IHTMLElement2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement2::applyElement Method


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

getAdjacentText, insertAdjacentElement, replaceAdjacentText



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.