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

IHTMLElement2::replaceAdjacentText Method


Replaces the adjacent text character.

Syntax

HRESULT replaceAdjacentText(
    BSTR where,
    BSTR newText,
    BSTR *oldText
);

Parameters

where
String (BSTR) that specifies where to apply the element. It can be one of the following strings:

beforeBegin Replaces the text immediately before the element.
afterBegin Replaces the text after the start of the element but before all other content in the element.
beforeEnd Replaces the text immediately before the end of the element but after all other content in the element.
afterEnd Replaces the text immediately after the end of the element.

newText
String (BSTR) that specifies the new text.
oldText
Address of a string (BSTR) returning the old text.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

applyElement, getAdjacentText, insertAdjacentElement



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.