IEditorOperations.MoveToStartOfLine Method
Moves the caret to the start of the line.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
声明
Sub MoveToStartOfLine ( _
extendSelection As Boolean _
)
void MoveToStartOfLine(
bool extendSelection
)
void MoveToStartOfLine(
bool extendSelection
)
abstract MoveToStartOfLine :
extendSelection:bool -> unit
function MoveToStartOfLine(
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
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.