TextView.SetSelectedHTMLText
----------------------------

Sets text with HTML.

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

MBS( "TextView.SetSelectedHTMLText"; TextView; HTML Text ) 

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

### Parameters

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

### Result

Returns OK or error.

### Description

Sets text with HTML.  
You pass HTML text and the field shows it.  
Use this function for selection only and [TextView.SetHTMLText](TextViewSetHTMLText.md) for whole text.  
### See also

- [TextView.GetSelectedHTMLText](TextViewGetSelectedHTMLText.md)
- [TextView.GetSelectedPlainText](TextViewGetSelectedPlainText.md)
- [TextView.GetSelectedStyledText](TextViewGetSelectedStyledText.md)
- [TextView.SetHTMLText](TextViewSetHTMLText.md)
- [TextView.SetSelectedPlainText](TextViewSetSelectedPlainText.md)
- [TextView.SetSelectedStyledText](TextViewSetSelectedStyledText.md)

### Release notes

- **Version 10.5**
    - Added more [TextView](https://www.mbsplugins.eu/component_TextView.shtml) functions: [TextView.GetSelectedStyledText](https://www.mbsplugins.eu/TextViewGetSelectedStyledText.shtml), [TextView.SetSelectedStyledText](https://www.mbsplugins.eu/TextViewSetSelectedStyledText.shtml), [TextView.GetSelectedHTMLText](https://www.mbsplugins.eu/TextViewGetSelectedHTMLText.shtml), [TextView.SetSelectedHTMLText](https://www.mbsplugins.eu/TextViewSetSelectedHTMLText.shtml), [TextView.GetSelectedRTF](https://www.mbsplugins.eu/TextViewGetSelectedRTF.shtml), [TextView.SetSelectedRTF](https://www.mbsplugins.eu/TextViewSetSelectedRTF.shtml), [TextView.GetSelectedPlainText](https://www.mbsplugins.eu/TextViewGetSelectedPlainText.shtml), [TextView.SetSelectedPlainText](https://www.mbsplugins.eu/TextViewSetSelectedPlainText.shtml), [TextView.GetSelectionStart](https://www.mbsplugins.eu/TextViewGetSelectionStart.shtml), [TextView.SetSelectionStart](https://www.mbsplugins.eu/TextViewSetSelectionStart.shtml), [TextView.GetSelectionLength](https://www.mbsplugins.eu/TextViewGetSelectionLength.shtml), [TextView.SetSelectionLength](https://www.mbsplugins.eu/TextViewSetSelectionLength.shtml), and [TextView.SetSelection](https://www.mbsplugins.eu/TextViewSetSelection.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 10.5pr1](https://www.mbsplugins.de/archive/2020-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th September 2020 , last changed 29th September 2020

  
[TextView.SetRulerVisible](TextViewSetRulerVisible.md) - [TextView.SetSelectedPlainText](TextViewSetSelectedPlainText.md)

[HTML Version](TextViewSetSelectedHTMLText.shtml)