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)

CaretPosition MoveTo(
	ITextViewLine^ textLine
)

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.

Return to top
Show: