Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Using Byte Offsets and Corresponding Points


TEGetOffset

The TEGetOffset function finds the byte offset of a character in an edit record's text that corresponds to the specified point.

FUNCTION TEGetOffset (pt: Point; hTE: TEHandle): Integer;
pt
A point in the displayed text of the specified edit record.
hTE
A handle to the edit record containing the text.
DESCRIPTION
The TEGetOffset function works for both monostyled and multistyled edit
records. The TEGetOffset function returns the byte offset of the first byte for a
2-byte character.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996