Table of Contents

Method SetCaretPosition

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetCaretPosition(long, bool)

Sets the caret position.

void SetCaretPosition(long position, bool showAtLineStart = false)

Parameters

position long
showAtLineStart bool

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.