Platforms to show: All Mac Windows Linux Cross-Platform

Back to StyledText class.

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
Get or set RTF data for this StyledText.
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

Dim r As String = s.RTFDataMBS


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.

See also RTFDataMBS and WinRTFDataMBS in TextArea and DesktopTextArea controls and RTFData in NSTextViewMBS class.
(Read and Write computed property)

Some examples using this property:

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

The biggest plugin in space...