Clipboard.GetRTFText
--------------------

Queries styled text from clipboard as RTF.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Clipboard](component_Clipboard.md) | [5.0](newinversion50.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Clipboard.GetRTFText" { ; Encoding } ) 

**MBS**( **"Clipboard.GetRTFText";** /\* Queries styled text from clipboard as RTF. \*/  
**$Encoding**) /\* Optional; The text encoding for result.   
Default is Windows ANSI.e.g. UTF8 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Encoding | The text encoding for result.    Default is Windows ANSI.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | UTF8 | Optional |

### Result

Returns text or error.

### Description

Queries styled text from clipboard as RTF.  
  
For server this will query the clipboard of the user account running the server app on the server computer and not the clipboard of any client.  
### See also

- [Clipboard.GetHTMLText](ClipboardGetHTMLText.md)
- [Clipboard.GetText](ClipboardGetText.md)
- [Clipboard.GetTypes](ClipboardGetTypes.md)
- [Clipboard.SetHTMLText](ClipboardSetHTMLText.md)
- [Clipboard.SetRTFText](ClipboardSetRTFText.md)
- [Clipboard.SetText](ClipboardSetText.md)

### Release notes

- **Version 14.1**
    - Improved [Clipboard.GetRTFText](https://www.mbsplugins.eu/ClipboardGetRTFText.shtml), [Clipboard.GetHTMLText](https://www.mbsplugins.eu/ClipboardGetHTMLText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) and Clipboard\_GetText for Windows to strip out an ending NULL character if the other application added it to the clipboard text.

### Example Databases

- [Clipboard](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Clipboard.shtml#1Button71.0000000690.000000096.0000000803.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 14.1pr4](https://www.mbsplugins.de/archive/2024-02-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th November 2014 , last changed 12nd November 2015

  
[Clipboard.GetPicture](ClipboardGetPicture.md) - [Clipboard.GetStyledText](ClipboardGetStyledText.md)

[HTML Version](ClipboardGetRTFText.shtml)