Condividi tramite


ITextCaret.MoveTo Method (ITextViewLine)

Moves the caret to the specified text line while preserving its current x-coordinate.

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

Syntax

'Dichiarazione
Function MoveTo ( _
    textLine As ITextViewLine _
) As CaretPosition
CaretPosition MoveTo(
    ITextViewLine textLine
)
CaretPosition MoveTo(
    ITextViewLine^ textLine
)
abstract MoveTo : 
        textLine:ITextViewLine -> CaretPosition 
function MoveTo(
    textLine : ITextViewLine
) : CaretPosition

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

ITextCaret Interface

MoveTo Overload

Microsoft.VisualStudio.Text.Editor Namespace