Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.57 KB

itextselection_moveleft_401060493.md

File metadata and controls

38 lines (28 loc) · 1.57 KB
-api-id -api-type
M:Microsoft.UI.Text.ITextSelection.MoveLeft(Microsoft.UI.Text.TextRangeUnit,System.Int32,System.Boolean)
winrt method

Microsoft.UI.Text.ITextSelection.MoveLeft

-description

Moves the insertion point or the active end of the text selection to the left, mimicking the functionality of the Left Arrow key.

-parameters

-param unit

The units by which to move the insertion point or active end. The following values are valid.

ValueCorresponding key combinationMeaning
CharacterLeft ArrowMove one character position to the left. This is the default.
WordCtrl+Left ArrowMove one word to the left.

-param count

The number of units to move. The default value is 1. If count is less than zero, movement is to the right.

-param extend

Indicates how to change the selection. True extends the selection by moving only the active end. False collapses the selection to an insertion point and then moves the insertion point. The default value is false.

-returns

The number of units that the insertion point or active end moved. Collapsing the selection counts as one unit.

-remarks

A nonzero extend value corresponds to the Shift key being pressed in addition to the key combination described in unit.

-examples

-see-also

ITextSelection.MoveRight