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)
Syntax
'Declaração
Sub GotoLine ( _
lineNumber As Integer _
)
void GotoLine(
int lineNumber
)
void GotoLine(
int lineNumber
)
abstract GotoLine :
lineNumber:int -> unit
function GotoLine(
lineNumber : int
)
Parameters
- lineNumber
Type: System.Int32
The line number to which to move the caret.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | lineNumber is less than zero or greater than the number of the last line in the text buffer. |
.NET Framework Security
- 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.