StyledText.setTextLimit

Sets the text limit to the specified number of characters. <p> The text limit specifies the amount of text that the user can type into the widget. </p>

@param limit the new text limit. @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_CANNOT_BE_ZERO when limit is 0</li> </ul>

class StyledText
void
setTextLimit
(
int limit
)

Meta