TextView.SetStyled
------------------

Sets styled flag.

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

MBS( "TextView.SetStyled"; TextView; Value ) 

**MBS**( **"TextView.SetStyled";** /\* Sets styled flag. \*/  
**$TextView**; /\* The reference number to the text view. \*/   
**$Value**) /\* The new setting.  
Pass 1 for styled text or 0 for plain text.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TextView | The reference number to the text view. | $textview |
| Value | The new setting.   Pass 1 for styled text or 0 for plain text. | 1 |

### Result

Returns OK or error.

### Description

Sets styled flag.  
If styled is enabled (by default), the text can be formatted with styles by the user.  
### See also

- [TextView.GetStyled](TextViewGetStyled.md)
- [TextView.GetStyledText](TextViewGetStyledText.md)
- [TextView.SetFrame](TextViewSetFrame.md)
- [TextView.SetSelectedStyledText](TextViewSetSelectedStyledText.md)
- [TextView.SetStyledText](TextViewSetStyledText.md)

### Release notes

- **Version 11.3**
    - Implemented [TextView.GetSelectedStyledText](https://www.mbsplugins.eu/TextViewGetSelectedStyledText.shtml), [TextView.SetSelectedStyledText](https://www.mbsplugins.eu/TextViewSetSelectedStyledText.shtml), [TextView.GetStyledText](https://www.mbsplugins.eu/TextViewGetStyledText.shtml) and [TextView.SetStyledText](https://www.mbsplugins.eu/TextViewSetStyledText.shtml) for Windows.
- **Version 10.4**
    - Added [TextView.GetStyledText](https://www.mbsplugins.eu/TextViewGetStyledText.shtml), [TextView.SetStyledText](https://www.mbsplugins.eu/TextViewSetStyledText.shtml) and [TextView.AppendStyledText](https://www.mbsplugins.eu/TextViewAppendStyledText.shtml) functions.

### Example Databases

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

This function checks for a license.

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

  
[TextView.SetSpellCheckingEnabled](TextViewSetSpellCheckingEnabled.md) - [TextView.SetStyledText](TextViewSetStyledText.md)

[HTML Version](TextViewSetStyled.shtml)