C H A P T E R 8
Text and Ink Input and Display
slots are generated and placed in the context frame of
is called with a string parameter that is a rich string, it is
automatically decoded into a text and style pair. The result is stored in the view
frame of the paragraph view.
Rich String Functions
You can use the rich string functions to convert and work with rich strings. Each of
these functions, shown in Table 8-7, is described in "Rich String Functions and
Methods" (page 7-31) in Newton Programmer's Reference.
Rich string functions
Function or method name
Converts the data from two slots into a rich
uses the text
from the '
slot of the view and the
array from the '
slot of the
Converts a rich string into a frame containing
slot and a
slots can be placed in a paragraph view for
editing or viewing.
Returns a rich string for a range of text
from a paragraph view.
Determines if a string is a rich string
(i.e., contains ink).
Returns the text from a paragraph view as a
rich string or plain string, depending on
whether the paragraph view contains
Strips any ink from a rich string. Either
removes the ink words or replaces each
with a specified replacement character