Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Moves the caret to the given index in the underlying ITextBuffer.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function MoveTo ( _
bufferPosition As SnapshotPoint _
) As CaretPosition
CaretPosition MoveTo(
SnapshotPoint bufferPosition
)
CaretPosition MoveTo(
SnapshotPoint bufferPosition
)
abstract MoveTo :
bufferPosition:SnapshotPoint -> CaretPosition
function MoveTo(
bufferPosition : SnapshotPoint
) : CaretPosition
Parameters
- bufferPosition
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The SnapshotPoint in the underlying text buffer to which to move the caret.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
A CaretPosition that contains the valid values of the caret after the move has occurred.
Remarks
This is equivalent to calling MoveTo(bufferPosition, PositionAffinity.Successor, true).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.