TChunkedText.GetChunkAndGlyphOffsetAtPt

function GetChunkAndGlyphOffsetAtPt(const ptm: TPageTextMetrics; const pt: TPoint; out chunkIdx, chunkChrOff: integer): Boolean;


Given a point and valid TPageTextMetrics record, this method will return the text chunk index and the glyph offset that corresponds to the supplied point. If there is no corresponding text chunk, the method will return false.