Skip to main content
A newer version of this page is available. .

SubDocument.getTextByInterval(interval) Method

Return the document’s textual representation contained in the specified interval.

Declaration

getTextByInterval(
    interval: Interval
): string

Parameters

Name Type Description
interval Interval

A text buffer interval that contains the target text.

Returns

Type Description
string

A string value specifying the text contained in the specified interval.

Remarks

Usage Example:

var startPosition = 2;
var length = 3;
var interval = new ASPx.Interval (startPosition, length);
richEdit.document.activeSubDocument.getTextByInterval(interval);
See Also