TextView.SetRTF
---------------

Sets text with RTF.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TextView](component_TextView.md) | [9.2](newinversion92.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "TextView.SetRTF"; TextView; RTF Text ) 

**MBS**( **"TextView.SetRTF";** /\* Sets text with RTF. \*/  
**$TextView**; /\* The reference number to the text view. \*/   
**$RTF Text**) /\* The new text. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TextView | The reference number to the text view. | $textview |
| RTF Text | The new text. |  |

### Result

Returns OK or error.

### Description

Sets text with RTF.  
You pass RTF text and the field shows it.  
### See also

- [TextView.GetRTF](TextViewGetRTF.md)
- [TextView.GetTag](TextViewGetTag.md)
- [TextView.GetTop](TextViewGetTop.md)
- [TextView.SetSelectedRTF](TextViewSetSelectedRTF.md)
- [TextView.SetTag](TextViewSetTag.md)

### Example Databases

- [Text functions/TextView](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/TextView.shtml#14ScriptAnchor_)

This function checks for a license.

Created 15th April 2019 , last changed 16th April 2019

  
[TextView.SetPlainText](TextViewSetPlainText.md) - [TextView.SetReadOnly](TextViewSetReadOnly.md)

[HTML Version](TextViewSetRTF.shtml)