IEditorOperations.MoveCaret(ITextViewLine, Double, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.