Locate the end of the selection nearest to the character given by index and adjust that end of the selection to be at index (including but not going beyond index). The other end becomes the anchor point for future selection_to() calls. If the selection is not currently in the spinbox, a new selection is created to include the characters between index and the most recent anchor point, inclusive.