StyleRun.Text

From Xojo Documentation

Property (As String )
aStyleRun.Text = newStringValue
or
StringValue = aStyleRun.Text

Supported for all project types and targets.

Gets or sets the text that makes up the StyleRun.

Example

This example gets the text of the first StyleRun.

TextArea2.Value = TextArea1.StyledText.StyleRun(0).Text