Knowing which character the TextOffset is associated with is necessary when displaying carets. In bidirectional text, a single offset may have two distinct carets. Also, in multiline text, an offset at a line break has a possible caret on each line.
Most clients will not be interested in the placement, and will just use the offset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|