Freigeben über


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

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

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace