Important: The information in this document is obsolete and should not be used for new development.
TEGetOffset
TheTEGetOffset
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
TheTEGetOffset
function works for both monostyled and multistyled edit
records. TheTEGetOffset
function returns the byte offset of the first byte for a
2-byte character.