Expand Minimize

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)

void MoveToHome(
	bool extendSelection
)

Parameters

extendSelection
Type: Boolean

If true, the selection is extended when the caret is moved; if false, the selection is not extended.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft