Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Interval Class

Contains settings for a text interval.

#Declaration

TypeScript
export class Interval implements IInterval

#Remarks

var interval = new DevExpress.RichEdit.Interval(0, 1);

#Implements

IInterval

#constructor(start, length)

Creates a new instance of the Interval class.

#Declaration

TypeScript
constructor(
    start: number,
    length: number
)

#Parameters

Name Type Description
start number

The interval’s start position.

length number

The interval length.

#Remarks

new DevExpress.RichEdit.Interval(10, 20);

#Properties

#end Property

Gets the interval’s end position in the document.

#Declaration

TypeScript
get end(): number

#Property Value

Type Description
number

The end position.

#length Property

Specifies the number of character positions in the interval.

#Declaration

TypeScript
length: number

#Property Value

Type Description
number

The interval length.

#start Property

Specifies the interval’s start position in the document.

#Declaration

TypeScript
start: number

#Property Value

Type Description
number

The start position.