Expand Minimize
This topic has not yet been rated - Rate this topic

IEditorOperations.GotoLine Method

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: Int32

The line number to which to move the caret.

ExceptionCondition
ArgumentOutOfRangeException

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.