Skip to content

TextBase.MoveCaret method

Moves the caret, keeping the selection anchor where it is when extending. Extending is what a shifted arrow key does, and it is the only way to build a selection whose caret sits at its start: Select always leaves the caret at the end.

public void MoveCaret(int position, bool extendSelection)