Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3    Statistic    FMM    Blog  

Clipboard.SetStyledText

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

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

Put red text on the clipboard:

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

See also

Release notes

  • Version 11.3
    • Implemented Clipboard.GetStyledText and Clipboard.SetStyledText for Windows.

Example Databases

Blog Entries

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


Clipboard.SetRTFText - Clipboard.SetText

Feedback: Report problem or ask question.




Links
MBS Xojo blog

Start Chat