IEditorOperations.MoveCaret(ITextViewLine, Double, Boolean) IEditorOperations.MoveCaret(ITextViewLine, Double, Boolean) IEditorOperations.MoveCaret(ITextViewLine, Double, Boolean) Method

Definition

Moves the caret to the given line at the given offset.

public void MoveCaret (Microsoft.VisualStudio.Text.Formatting.ITextViewLine textLine, double horizontalOffset, bool extendSelection);
abstract member MoveCaret : Microsoft.VisualStudio.Text.Formatting.ITextViewLine * double * bool -> unit
Public Sub MoveCaret (textLine As ITextViewLine, horizontalOffset As Double, extendSelection As Boolean)
Parameters
textLine
ITextViewLine ITextViewLine ITextViewLine

The ITextViewLine on which to place the caret.

horizontalOffset
Double Double Double

The horizontal location in the given textLine to which to move the caret.

extendSelection
Boolean Boolean Boolean

If true, the selection is extended when the caret is moved; if false, the selection is not extended.

Exceptions

Applies to