RichText.FormattedText
----------------------

Returns the styled text of the currently loaded text file.

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

MBS( "RichText.FormattedText" ) ### Parameters

none

### Result

Returns text or error.

### Description

Returns the styled text of the currently loaded text file.  
### Examples

Read formatted text from container field:

 $r = MBS ( "[RichText.ReadContainer](RichTextReadContainer.md)"; Test::ContainerField )  
$text = MBS ( "RichText.FormattedText" )  
Read container in one formula:

 Let ( \[  
r = MBS ( "[RichText.ReadContainer](RichTextReadContainer.md)"; MyContainer );   
text = MBS ( "RichText.FormattedText" )  
\]; text )  
### See also

- [RichText.AppendFormattedText](RichTextAppendFormattedText.md)
- [RichText.ReadContainer](RichTextReadContainer.md)
- [RichText.ReadFile](RichTextReadFile.md)
- [RichText.ReadHTML](RichTextReadHTML.md)
- [RichText.ReadRTF](RichTextReadRTF.md)
- [RichText.ReadURL](RichTextReadURL.md)
- [RichText.Release](RichTextRelease.md)
- [RichText.SetFormattedText](RichTextSetFormattedText.md)

### Release notes

- **Version 10.1**
    - Added handing of Strikethrough text attribute for styled text conversion from NSAttributedString to FileMaker. Affects [WebView.GetFormattedText](https://www.mbsplugins.eu/WebViewGetFormattedText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml), [RichText.FormattedText](https://www.mbsplugins.eu/RichTextFormattedText.shtml) and other functions.

### Example Databases

- [Mac only/RichText/RichText](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RichText.shtml#4ScriptAnchor_)
- [Mac only/RichText/RTF to formatted text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RTF%20to%20formatted%20text.shtml#1ScriptAnchor_)
- [Text functions/HTML to formatted text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/HTML%20to%20formatted%20text.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 10.1pr6](https://www.mbsplugins.de/archive/2020-03-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in the MBS FileMaker Plugin 10.0](https://www.mbsplugins.de/archive/2020-01-23/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 18th December 2015

  
[RichText.CopyToClipboard](RichTextCopyToClipboard.md) - [RichText.GeneratePDF](RichTextGeneratePDF.md)

[HTML Version](RichTextFormattedText.shtml)