StyledText.getStyleRangeAtOffset

Returns the style range at the given offset. <p> Returns null if a LineStyleListener has been set or if a style is not set for the offset. Should not be called if a LineStyleListener has been set since the listener maintains the styles. </p>

@param offset the offset to return the style for. 0 <= offset < getCharCount() must be true. @return a StyleRange with start is offset and length is 1, indicating the style at the given offset. null if a LineStyleListener has been set or if a style is not set for the given offset. @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_ARGUMENT when the offset is invalid</li> </ul>

class StyledText
getStyleRangeAtOffset
(
int offset
)

Meta