Skip to main content

RichEditSelection Methods

Contains a set of methods and properties to work with the document selection.
Name Description
getIntervalMaxPosition Gets the length of the active sub-document.
goToDocumentEnd Moves the cursor to the end of the active sub-document and allows you to extend the selection.
goToDocumentStart Moves the cursor to the start of the active sub-document and allows you to extend the selection.
goToLineEnd Moves the cursor to the end of the line and allows you to extend the selection.
goToLineStart Moves the cursor to the start of the line and allows you to extend the selection.
goToNextCharacter Moves the cursor to the next character and allows you to extend the selection.
goToNextLine Moves the cursor to the next line and allows you to extend the selection.
goToNextPage Moves the cursor to the next page and allows you to extend the selection.
goToNextWord Moves the cursor to the next word and allows you to extend the selection.
goToParagraphEnd Moves the cursor to the end of the paragraph and allows you to extend the selection.
goToParagraphStart Moves the cursor to the start of the paragraph and allows you to extend the selection.
goToPreviousCharacter Moves the cursor to the previous character and allows you to extend the selection.
goToPreviousLine Moves the cursor to the previous line and allows you to extend the selection.
goToPreviousPage Moves the cursor to the previous page and allows you to extend the selection.
goToPrevWord Moves the cursor to the previous word and allows you to extend the selection.
goToStartNextPageCommand Moves the cursor to the next page break mark and extends the selection.
goToStartPrevPageCommand Moves the cursor to the previous page break mark and extends the selection.
selectAll Selects the entire content of the active sub-document.
selectLine Selects the line in which the cursor is located and allows you to extend the selection.
selectParagraph Selects the paragraph in which the cursor is located.
selectTable Selects the entire table in which the cursor is located.
selectTableCell Selects the table cell in which the cursor is located.
selectTableRow Selects the table row in which the cursor is located.
setActiveSubDocumentById(id) Makes the specified sub-document active.
setFooterSubDocumentAsActiveByPageIndex(pageIndex) Creates a footer sub-document (if it was not created before) and sets the footer as the active sub-document. Moves the cursor to the footer’s start position.
setHeaderSubDocumentAsActiveByPageIndex(pageIndex) Creates a header sub-document (if it was not created before) and sets the header as the active sub-document. Moves the cursor to the header’s start position.
setMainSubDocumentAsActive Makes the main sub-document active and moves the cursor to its beginning.
setSelection(arg) Selects the specified interval(s).
setTextBoxSubDocumentAsActive(arg) Makes the specified text box active.
See Also