CodeArea: how to convert offset to TextPos?

PavelTurk pavelturk2000 at gmail.com
Wed May 7 16:28:53 UTC 2025


Could anyone say how to convert offset to TextPos in CodeArea?

For example, in RTFX CodeArea we have:

var pos = codeArea.offsetToPosition(offset, Bias.Backward);
var paragraph = pos.getMajor();

Best regards, Pavel


More information about the openjfx-dev mailing list