GetRangeData
protoTXView:GetRangeData(range, which)
Returns a certain kind of data (text or styles) for the specified range in a word-processing view.
DISCUSSION
- range
- A frame with two slots:
'first
and'last
. This frame defines a text range from'first
to'last
, inclusive. Each slot is required. The value of each slot must be a positive integer value.
- which
- Specifies the kind of data to retrieve. You can specify one of the following values:
Symbol Returned data
'text
A string allocated from the NewtonScript heap.
'styles
An array with two entries for each style run in the range. The first entry specifies the number of characters, and the second is either a font specification frame or a graphics specifiation frame. The run length is always 1 for graphics specification frames. For a description of the font specification frame, see the section "Font Frame" (8-18) in Newton Programmer's Guide. See "The Graphics Specification Frame" for a description of the graphics specification frame.
'rulers
An array with two entries for each ruler. The first entry specifies the number of characters for the ruler, and the second contains a ruler information frame. See "The Ruler Information Frame" for a description of the ruler information frame.
'all
Returns all information in a frame that contains three slots:'text
,'styles
, and'rulers
.
- return value
- A frame or array containing the requested data.
The *
GetRangeData
method returns data for a range of text within a word-processing view.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help