Compartir a través de


IEditorOperations.MoveToStartOfLine(Boolean) Method

Definition

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

public:
 void MoveToStartOfLine(bool extendSelection);
public:
 void MoveToStartOfLine(bool extendSelection);
void MoveToStartOfLine(bool extendSelection);
public void MoveToStartOfLine (bool extendSelection);
abstract member MoveToStartOfLine : bool -> unit
Public Sub MoveToStartOfLine (extendSelection As Boolean)

Parameters

extendSelection
Boolean

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

Remarks

If the caret is in the middle of the line, move it to the start of the first non-whitespace character. If the caret is at the start of the first whitespace character, move it to the start of the line. If the caret is at the start of a line containing non-whitespace characters, move it to the start of the first non-whitespace character. If the caret is at the start of a line with only whitespace characters, move it to the start of the line.

Applies to