Product Information > JADE Encyclopaedia of Classes – Volume 3 > Chapter 2 - Window Classes > getTextRange

getTextRange

getTextRange(startPos: Integer;
             stopPos:  Integer): String;

The getTextRange method of the JadeTextEdit class returns a string containing the text from the text editor in the range specified by the startPos and stopPos parameter values. The startPos and stopPos parameters are the zero-based offsets of the first and last characters to return, respectively. A stopPos parameter value of -1 specifies the last character in the text editor.

No end-of-line sequence conversion is performed.

The value of the startPos parameter must be less than that of the stopPos parameter and less than the length of the text.