ITextServices::TxSetText method (textserv.h)
Sets all of the text in the control.
HRESULT TxSetText( LPCWSTR pszText );
The string which will replace the current text.
If the method succeeds, the return value is S_OK.
If the method fails, the return value is the following HRESULT code. For more information on COM error codes, see Error Handling in COM.
||Text could not be updated.|
This method should be used with care; it essentially reinitializes the text services object with some new data. Any previous data and formatting information will be lost, including undo information.
If previous data has been copied to the clipboard, that data will be rendered completely to the clipboard (through OleFlushClipboard) before it is discarded.
This method does not support Undo.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|