Compartir a través de


IEditorOperations.MoveCaret(ITextViewLine, Double, Boolean) Method

Definition

Moves the caret to the given textLine at the given horizontalOffset.

public:
 void MoveCaret(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ textLine, double horizontalOffset, bool extendSelection);
public:
 void MoveCaret(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ textLine, double horizontalOffset, bool extendSelection);
void MoveCaret(Microsoft::VisualStudio::Text::Formatting::ITextViewLine const & textLine, double horizontalOffset, bool extendSelection);
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

The ITextViewLine on which to place the caret.

horizontalOffset
Double

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

extendSelection
Boolean

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

Exceptions

textLine is null.

Applies to