Skip to main content

ASPxClientTextEdit.SetSelection(startPos, endPos, scrollToSelection) Method

Selects the specified portion of the editor’s text.

Declaration

SetSelection(
    startPos: number,
    endPos: number,
    scrollToSelection: boolean
): void

Parameters

Name Type Description
startPos number

A value that specifies the selection’s starting position.

endPos number

A value that specifies the selection’s ending position.

scrollToSelection boolean

true to scroll the editor’s contents to make the selection visible; otherwise, false.

See Also