Clipboard.GetStyledText
-----------------------

Queries styled text from clipboard.

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

MBS( "Clipboard.GetStyledText" ) ### Parameters

none

### Result

Returns text or error.

### Description

Queries styled text from clipboard.  
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.  
  
Implemented for Windows with version 11.3 of MBS Plugin.  
If there is no styled text, we return empty text and you may use [Clipboard.GetText](ClipboardGetText.md) then.  
### See also

- [Clipboard.GetHTMLText](ClipboardGetHTMLText.md)
- [Clipboard.GetText](ClipboardGetText.md)
- [Clipboard.SetStyledText](ClipboardSetStyledText.md)
- [WebView.Copy](WebViewCopy.md)

### Release notes

- **Version 15.2**
    - Upgraded NSAttributedString handling to better work with postscript font names. This affects [Clipboard.SetStyledText](https://www.mbsplugins.eu/ClipboardSetStyledText.shtml), [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) and other functions on macOS using styled text.
- **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.
    - Improved our RTF parser for [Text.TextToRTF](https://www.mbsplugins.eu/TextTextToRTF.shtml) and [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) function.
- **Version 11.3**
    - Implemented [Clipboard.GetStyledText](https://www.mbsplugins.eu/ClipboardGetStyledText.shtml) and [Clipboard.SetStyledText](https://www.mbsplugins.eu/ClipboardSetStyledText.shtml) for Windows.
- **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

- [Clipboard](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Clipboard.shtml#1Button71.0000000556.000000096.0000000669.0000000LayoutObjectAnchor_)
- [WebViewer/WebView Copy and Paste](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebView%20Copy%20and%20Paste.shtml#1Button11.0000000687.000000045.0000000793.0000000LayoutObjectAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 15.2pr3](https://www.mbsplugins.de/archive/2025-04-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.1pr4](https://www.mbsplugins.de/archive/2024-02-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-12/Neues_MBS_FileMaker_Plugin_113/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-07-12/MBS_FileMaker_Plugin_113_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr1](https://www.mbsplugins.de/archive/2021-06-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr6](https://www.mbsplugins.de/archive/2020-03-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th November 2014 , last changed 13th March 2023

  
[Clipboard.GetRTFText](ClipboardGetRTFText.md) - [Clipboard.GetText](ClipboardGetText.md)

[HTML Version](ClipboardGetStyledText.shtml)