Method SetCaretPosition
SetCaretPosition(long, bool)
Sets the caret position.
void SetCaretPosition(long position, bool showAtLineStart = false)
Parameters
Remarks
The caret position is the character position just before the caret. A value of -1 means the caret is at the start of the buffer. Please note that this does not update the current editing style from the new position or cause the actual caret to be refreshed; to do that, call SetInsertionPoint(long) instead.