Operator Type:
Operator Scope of Action:
Operator Purpose:
Operator First Added:
Operator Last Altered:
Function [other Function type actions]
Item [operators of similar scope]
Formatting [other Formatting operators]
Baseline
As at baseline
Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses
StyledString.plain()
StyledString.plain
The function (re-)sets the referenced string's (RTF) styled text to the default face.
$Text = $Text + "This is " + "some".italic + " text".plain;
adds "this is some text" to the end of $Text. The '.plain' command reasserts no style is to be applied.
Note that $Text is currently the only attribute capable of holding styled text. String attributes and action code variables, i.e. var, cannot store styled text. If passed styled text the latter will store the unstyled version of the text being passed. See a more detailed explanation.
Re-setting a note's $Text styling to defaults via code or stamp
The Format ▸ Style menu allows the user to reset the default $TextFont/$TextSize and (ruler) styles. To replicate all those defaults for all the existing $Text, use:
$Text = $Text.plain;
String operators respecting StyledString operators