Partager via


IEditorOperations.MoveToHome Method

Moves the caret to the first text column on the line.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Déclaration
Sub MoveToHome ( _
    extendSelection As Boolean _
)
void MoveToHome(
    bool extendSelection
)
void MoveToHome(
    bool extendSelection
)
abstract MoveToHome : 
        extendSelection:bool -> unit 
function MoveToHome(
    extendSelection : boolean
)

Parameters

  • extendSelection
    Type: System.Boolean
    If true, the selection is extended when the caret is moved; if false, the selection is not extended.

Remarks

The result of this method is the same as the result of pressing the Home key. If the caret is already at the first text column, or if there is no text, this method moves the caret to the first column on the line.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace