CTextRange2.MoveUpmethod
Mimics the functionality of the Up Arrow and Page Up keys.
Syntax
FUNCTION MoveUp (BYVAL Unit AS LONG = tomLine, BYVAL Count AS LONG = 1, BYVAL Extend AS LONG = 0) AS LONG
Parameters
| Name | Description | |
|---|---|---|
Unit | Unit to use. It can be one of the following (sse table below). | |
Count | Number of Units to move past. The default value is 1. If Count is less than zero, movement is to the left. | |
Extend | Flag that indicates how to change the selection. If Extend is zero (or tomMove), the method collapses the selection to an insertion point at the active end and then moves it. If Extend is 1 (or tomExtend), the method moves the active end and leaves the other end alone. The default value is zero. A nonzero Extend value corresponds to the Shift key being pressed in addition to the key combination described in Unit. |
Return value
The actual count of units the insertion point or active end is moved down. Collapsing the selection counts as one unit.
Description
Mimics the functionality of the Up Arrow and Page Up keys.
Note: If Count is less than zero, movement is to the left.
Reference
- Defined in AfxNova/CTextRange2.inc:786
- Documented in Windows/WIndows Controls/RichEdit/CTextRange2 Class.md
- Topic: CTextRange2 Class