Expand Minimize
This topic has not yet been rated - Rate this topic

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: System.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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.