CTextStory.SetTextmethod
Sets the text in this range.
Syntax
FUNCTION SetText (BYVAL Flags AS LONG, BYREF wszText AS WstRING) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
Flags | Flags controlling how the text is inserted as defined in the following table: tomCheckTextLimit, tomMathCFCheck, tomUnhide, tomUnicodeBiDi, tomUnlink. | |
wszText | The new text for this story. If this parameter is "", the text in the story is deleted. |
Return value
If the method succeeds, GetLastResult returns S_OK. If the method fails, it returns one of the following COM error codes.
Description
Replaces the text in a story with the specified text.
Reference
- Defined in AfxNova/CTextStory.inc:241
- Documented in Windows/WIndows Controls/RichEdit/CTextStory Class.md
- Topic: CTextStory Class