PointToChar
protoTXView:PointToChar(point)
Returns a range frame for the character at the specified point.
DISCUSSION
- point
- A frame containing two slots:
x
The horizontal coordinate, as a global coordinate value, relative to the top-left of the screen.
y
The vertical coordinate, as a global coordinate value, relative to the top-left of the screen.
- return value
- The *
PointToChar
method returns a range frame for the character at the specified point. Range frames are described in "The Range Frame".
The values of the slots in the returned range frame are as follows:
- If point is inside of a text run, the
'first
and'last
slots have the same value.- If point is inside of a graphics run, the value of the
'last
slot is 1 greater than the value of the'first
slot.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help