Platform SDK: Windows User Interface |
The ITextSelection::MoveDown method mimics the functionality of the UI DOWN ARROW and PAGE DOWN keys.
STDMETHODIMP ITextSelection::MoveDown( long Unit, long Count, long Extend, long *pDelta );
Value | Corresponding key combination | Meaning |
---|---|---|
tomLine | DOWN ARROW (¯) | Moves down one line. This is the default. |
tomParagraph | CTRL+DOWN ARROW (¯) | Moves down one paragraph. |
tomScreen | PAGE DOWN | Moves down one screen. |
tomWindow | CTRL+PAGE DOWN | Moves to last character in window. |
A nonzero Extend value corresponds to the SHIFT key being pressed in addition to the key combination described in Unit.
The method returns an HRESULT. If the method succeeds, it returns S_OK. If the method fails, it returns one of the following error codes. For more information about COM error codes, see Error Handling.
Value | Meaning |
---|---|
E_INVALIDARG | Unit is not valid. |
S_FALSE | Failure for some other reason. |
The ITextSelection::MoveUp and ITextSelection::MoveDown methods are similar to the ITextSelection::MoveLeft and ITextSelection::MoveRight methods, except that they reflect the behavior of the UP ARROW (), DOWN ARROW (¯), PAGE UP, and PAGE DOWN keys on the cursor-keypad.
Version: Requires Rich Edit 2.0 or later.
Header: Declared in Tom.h.
Text Object Model Overview, Text Object Model Interfaces, ITextSelection, ITextSelection::MoveLeft, ITextSelection::MoveRight, ITextSelection::MoveUp