Language Guide

APPENDIX B
Scriptable Text Editor Dictionary
316 About Text Objects
text object. If any of the style constants (bold, italic, outline, underline,
and shadow) do not appear in either field, it is because the styles apply to
some, but not all, of the characters in the object.
The following example shows the value of a Uniform Styles property for a
text object in which every character is bold and no characters are outlined
or shadowed:
{On Styles:{bold}, Off Styles:{outline, shadow}}
The fact that the italic and underline constants do not appear in either
field means that at least one, but not all, of the characters in the object are
italicized and underlined. To find out which characters are italicized or
underlined, you must examine the Style properties of each character in the
text object.
To set the styles of a text object, use a Copy or Set command to set the Style
property of the text object to one of the following:
a two-part record like the one described earlier for the value of a
Style property
a one-part record that specifies either On Styles or Off Styles
a list specifying the On Styles
a constant specifying a single style
For example, here are four ways to use the Set command to set text styles:
set the style of word 1 to {On Styles:{italic},
Off Styles:{bold, shadow}}
set the style of word 1 to {On Styles:{italic, bold}}
set the style of word 1 to {bold, italic}
set the style of word 1 to italic
In the first example, the styles specified in the On Styles property are added
to the active styles of word 1. The styles specified in the Off Styles property
are removed from the active styles of word 1. Styles that are not specified in
either property remain the same. For example, if word 1 is originally