StyledText.getLocationAtOffset

Returns the x, y location of the upper left corner of the character bounding box at the specified offset in the text. The point is relative to the upper left corner of the widget client area.

@param offset offset relative to the start of the content. 0 <= offset <= getCharCount() @return x, y location of the upper left corner of the character bounding box at the specified offset in the text. @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_INVALID_RANGE when the offset is outside the valid range (< 0 or > getCharCount())</li> </ul>

class StyledText
getLocationAtOffset
(
int offset
)

Meta