ITextSelection.MoveDown method

Moves the insertion point or the active end of the text selection down, mimicking the functionality of the Down Arrow or Page Down key.

Syntax


int MoveDown(
  TextRangeUnit unit, 
  int count, 
  bool extend
)

Parameters

unit

Type: TextRangeUnit

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

ValueCorresponding key combinationMeaning
LineDown ArrowMoves down one line. This is the default.
ParagraphCtrl+Down ArrowMoves down one paragraph.
ScreenPage DownMoves down one screen.
WindowCtrl+Page DownMoves to the last character in the window.

 

count

Type: System.Int32 [.NET] | int32 [C++]

The number of units to move. The default value is 1.

extend

Type: System.Boolean [.NET] | Platform::Boolean [C++]

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.

Return value

Type: System.Int32 [.NET] | int32 [C++]

The number of units that the insertion point or active end moved down. 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.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextSelection
ITextSelection.MoveUp

 

 

Show:
© 2015 Microsoft