StyledText.updateSelection

Updates the selection and caret position depending on the text change. <p> If the selection intersects with the replaced text, the selection is reset and the caret moved to the end of the new text. If the selection is behind the replaced text it is moved so that the same text remains selected. If the selection is before the replaced text it is left unchanged. </p>

@param startOffset offset of the text change @param replacedLength length of text being replaced @param newLength length of new text

class StyledText
package
void
updateSelection

Meta