ITextCaret.MoveTo Method (VirtualSnapshotPoint)

Moves the caret to the specified buffer position.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

声明
Function MoveTo ( _
    bufferPosition As VirtualSnapshotPoint _
) As CaretPosition
CaretPosition MoveTo(
    VirtualSnapshotPoint bufferPosition
)
CaretPosition MoveTo(
    VirtualSnapshotPoint bufferPosition
)
abstract MoveTo : 
        bufferPosition:VirtualSnapshotPoint -> CaretPosition 
function MoveTo(
    bufferPosition : VirtualSnapshotPoint
) : CaretPosition

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.CaretPosition
A CaretPosition that contains the valid values of the caret position after the move has occurred.

Remarks

This is equivalent to calling MoveTo(bufferPosition, PositionAffinity.Successor, true).

.NET Framework Security

See Also

Reference

ITextCaret Interface

MoveTo Overload

Microsoft.VisualStudio.Text.Editor Namespace