![]() |
TEGetOffset |
||||
Header: | TextEdit.h | Carbon status: | Not Recommended | |
Finds the byte offset of a character in an edit structures text that corresponds to the specified point.
SInt16 TEGetOffset ( Point pt, TEHandle hTE );
A point in the displayed text of the specified edit structure.
A handle to the edit structure containing the text.
The byte offset of the character at the specified point. In the case of a 2-byte character, the function returns the byte offset of the first byte.
The TEGetOffset function works for both monostyled and multistyled edit structures.
Not recommended in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)