Platforms to show: All Mac Windows Linux Cross-Platform

StyledText.RTFDataMBS(SkipParagraphs as Boolean = false) as string
Type Topic Plugin Version macOS Windows Linux iOS Targets
property String MBS Util Plugin 13.5 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Function: Get or set RTF data for this StyledText.
Example:
Dim s As New StyledText

s.Text = "Hello World"

s.Bold(0,5) = True
s.size(0,6) = 12
s.size(6,5) = 14

#if TargetDesktop
Dim m As String = s.RTFData
#EndIf

Dim r As String = s.RTFDataMBS

Break
Notes:
This is a replacement for the built-in RTFData property.
We tried to make the results exactly like the original.
Speed should be a little bit faster than the official method.

Added SkipParagraphs parameter in version 21.2.
If SkipParagraphs is true, we skip to look on paragraphs, so left/center/right alignment won't be included in the output, but that is much faster.
(Read and Write computed property)

Some examples using this property:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.

The biggest plugin in space...




Links
MBS Xojo Chart Plugins

Start Chat