How to find offset from line and column number
Posted: Thu Jun 17, 2021 9:55 pm
Hello,
I work with the version 22 of Oxygen SDK and I wonder how can I retrieve the offset from a line number and column number.
I have found the method getOffsetOfLineStart from the class WSTextEditorPage but the offset return is out of the document.
Exemple with the line 80, I get an offset of 3352 but the endOffset of the root element is 172.
Is there a way the have the good offset ?
Thanks in advanced,
Regards,
Isabelle
I work with the version 22 of Oxygen SDK and I wonder how can I retrieve the offset from a line number and column number.
I have found the method getOffsetOfLineStart from the class WSTextEditorPage but the offset return is out of the document.
Exemple with the line 80, I get an offset of 3352 but the endOffset of the root element is 172.
Is there a way the have the good offset ?
Thanks in advanced,
Regards,
Isabelle