Back to Devexpress

RichEditSelection Members

aspnet-js-richeditselection-dot-underscore-members.md

latest5.3 KB
Original Source

RichEditSelection Members

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

Properties

NameDescription
collapsedSpecifies whether the current selection is collapsed (the cursor position).
intervalsSpecifies an array of selected intervals in the document.
isFloatingObjectSelectedGets whether only a floating picture or text box is selected.
isPictureSelectedGets whether only a picture is selected.
isTextBoxSelectedGets whether only a text box is selected.

Methods

NameDescription
getIntervalMaxPositionGets the length of the active sub-document.
goToDocumentEndMoves the cursor to the end of the active sub-document and allows you to extend the selection.
goToDocumentStartMoves the cursor to the start of the active sub-document and allows you to extend the selection.
goToLineEndMoves the cursor to the end of the line and allows you to extend the selection.
goToLineStartMoves the cursor to the start of the line and allows you to extend the selection.
goToNextCharacterMoves the cursor to the next character and allows you to extend the selection.
goToNextLineMoves the cursor to the next line and allows you to extend the selection.
goToNextPageMoves the cursor to the next page and allows you to extend the selection.
goToNextWordMoves the cursor to the next word and allows you to extend the selection.
goToParagraphEndMoves the cursor to the end of the paragraph and allows you to extend the selection.
goToParagraphStartMoves the cursor to the start of the paragraph and allows you to extend the selection.
goToPreviousCharacterMoves the cursor to the previous character and allows you to extend the selection.
goToPreviousLineMoves the cursor to the previous line and allows you to extend the selection.
goToPreviousPageMoves the cursor to the previous page and allows you to extend the selection.
goToPrevWordMoves the cursor to the previous word and allows you to extend the selection.
goToStartNextPageCommandMoves the cursor to the next page break mark and extends the selection.
goToStartPrevPageCommandMoves the cursor to the previous page break mark and extends the selection.
selectAllSelects the entire content of the active sub-document.
selectLineSelects the line in which the cursor is located and allows you to extend the selection.
selectParagraphSelects the paragraph in which the cursor is located.
selectTableSelects the entire table in which the cursor is located.
selectTableCellSelects the table cell in which the cursor is located.
selectTableRowSelects 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.
setMainSubDocumentAsActiveMakes 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

RichEditSelection Class