getWordAt

getWordAt(action: Integer): String;

The getWordAt method of the JadeTextEdit class returns the word at the specified location in the text editor.

In the action parameter, use the JadeTextEdit class constant of LOCAT_MOUSEPOINTER (0) if you want to return the word at the current mouse position or LOCAT_CARET (1) if you want to return the word at the current caret position.

The word consists of all the characters that precede and follow the specified location that are currently defined as word characters. See the setWordCharactersets method.