[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] StyledTextContent how convert position and linenumber to offset?

I am using styled text to processes some text files. When I open some file and put cursor to some specific place, i can see in bottom of eclipse line and position number, how i can get document offset if i know this number, i have founded getOffsetAtLine(int i) method, but I can't found how to get offset for some position in line?