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

IHTMLElement2::getAdjacentText Method


Returns the adjacent text character.

Syntax

HRESULT getAdjacentText(
    BSTR where,
    BSTR *text
);

Parameters

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

beforeBegin Text is returned immediately before the element.
afterBegin Text is returned after the start of the element but before all other content in the element.
beforeEnd Text is returned immediately before the end of the element but after all other content in the element.
afterEnd Text is returned immediately after the end of the element.

text
Address of a string (BSTR) that returns the adjacent text.

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

applyElement, 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.