StyledText.setCaretOffset

Sets the caret offset.

@param offset caret offset, relative to the first character 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_ARGUMENT when either the start or the end of the selection range is inside a multi byte line delimiter (and thus neither clearly in front of or after the line delimiter) </ul>

class StyledText
void
setCaretOffset
(
int offset
)

Meta