Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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: Int32The 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.