IEditorOperations::GotoLine Method (Int32)
Visual Studio 2015
Moves the caret to the start of the specified line.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
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. |
Show: