RichText.SetText
----------------

Sets new text for saving a document.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [3.5](newinversion35.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "RichText.SetText"; Text ) 

**MBS**( **"RichText.SetText";** /\* Sets new text for saving a document. \*/  
**$Text**) /\* The new text to use.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The new text to use. | "Hello World" |

### Result

Returns OK or error.

### Description

Sets new text for saving a document.  
### See also

- [RichText.AppendText](RichTextAppendText.md)
- [RichText.HTMLText](RichTextHTMLText.md)
- [RichText.ReadText](RichTextReadText.md)
- [RichText.Text](RichTextText.md)
- [RichText.WriteDOC](RichTextWriteDOC.md)
- [RichText.WriteRTF](RichTextWriteRTF.md)

This function is free to use.

Created 18th August 2014 , last changed 16th November 2019

  
[RichText.SetFormattedText](RichTextSetFormattedText.md) - [RichText.Text](RichTextText.md)

[HTML Version](RichTextSetText.shtml)