Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.SnapshotPointThe 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.