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

RichEditSelection Members

Contains a set of methods and properties to work with the document selection.

Properties

Name Description
collapsed Gets or sets a value specifying whether the current selection is collapsed (and represents the cursor position).
intervals Gets or sets an array of document intervals in the selection.
isFloatingObjectSelected Gets whether a floating picture or text box is selected.
isPictureSelected Gets whether only a picture is selected.
isTextBoxSelected Gets whether only a text box is selected.

Methods

Name Description
getIntervalMaxPosition Gets the maximum position of a document interval in the selection.
goToDocumentEnd Moves the cursor to the end of the document and allows you to extend the selection.
goToDocumentStart Moves the cursor to the start of the document and allows you to extend the selection.
goToLineEnd Moves the cursor to the end of the line in which the cursor is located and allows you to extend the selection.
goToLineStart Moves the cursor to the start of the line in which the cursor is located 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 beginning of 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 in which the cursor is located and allows you to extend the selection.
goToParagraphStart Moves the cursor to the start of the paragraph in which the cursor is located 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 beginning of 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 editor’s entire content.
selectLine Selects the line in which the cursor is located and allows you to extend the entire selection with the currently existing selection.
selectParagraph Selects the paragraph in which the cursor is located.
selectTable Selects the entire table in which the cursor is located and allows you to extend the entire selection with the currently existing selection.
selectTableCell Selects the table cell in which the cursor is located and allows you to extend the entire selection with the currently existing selection.
selectTableRow Selects the table row in which the cursor is located and allows you to extend the entire selection with the currently existing selection.
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