Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Put styled text on the clipboard.

Component Version macOS Windows Linux Server iOS SDK
Clipboard 5.0 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "Clipboard.SetStyledText"; Text )   More


Parameter Description Example
Text The styled text to put in clipboard. "Hello World"


Returns OK or error.


Put styled text on the clipboard.

This is direct way for styled text without converting in-between to RTF.
For Windows or cross platform solutions you can combine Text.TextToRTF and Clipboard.SetRTFText.

For server this will modify 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.


Put red text on the clipboard:

MBS( "Clipboard.SetStyledText"; TextColor ( "Hello World" ; RGB ( 65535 ; 0 ; 0 ) ) )

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 17th November 2014, last changed 19th May 2021

Clipboard.SetRTFText - Clipboard.SetText