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