StyledText.getTextBounds

Returns the smallest bounding rectangle that includes the characters between two offsets.

@param start offset of the first character included in the bounding box @param end offset of the last character included in the bounding box @return bounding box of the text between start and end @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 start and/or end are outside the widget content</li> </ul> @since 3.1

class StyledText
getTextBounds
(
int start
,
int end
)

Meta