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