IEditorOperations.GotoLine Method
Visual Studio 2012
Moves the caret to the start of the specified line.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | lineNumber is less than zero or greater than the number of the last line in the text buffer. |
- 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.