IEditorOperations::GotoLine Method (Int32)

 

Moves the caret to the start of the specified line.

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

void GotoLine(
	int lineNumber
)

Parameters

lineNumber
Type: System::Int32

The line number to which to move the caret.

Exception Condition
ArgumentOutOfRangeException

lineNumber is less than zero or greater than the number of the last line in the text buffer.

Return to top
Show: