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
- textLine
Type: Microsoft.VisualStudio.Text.Formatting.ITextViewLine
The text line that will contain 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.
.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.