Dela via


ITextSelection.MoveDown(TextRangeUnit, Int32, Boolean) Method

Definition

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

public:
 int MoveDown(TextRangeUnit unit, int count, bool extend);
int MoveDown(TextRangeUnit const& unit, int const& count, bool const& extend);
public int MoveDown(TextRangeUnit unit, int count, bool extend);
function moveDown(unit, count, extend)
Public Function MoveDown (unit As TextRangeUnit, count As Integer, extend As Boolean) As Integer

Parameters

unit
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
Int32

int

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

extend
Boolean

bool

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

Int32

int

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.

Applies to

See also