Selection.MoveDown Method

Moves the selection down and returns the number of units it's been moved.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function MoveDown ( _
    ByRef Unit As Object, _
    ByRef Count As Object, _
    ByRef Extend As Object _
) As Integer
'Usage
Dim instance As Selection
Dim Unit As Object
Dim Count As Object
Dim Extend As Object
Dim returnValue As Integer

returnValue = instance.MoveDown(Unit, _
    Count, Extend)
int MoveDown(
    ref Object Unit,
    ref Object Count,
    ref Object Extend
)

Parameters

  • Count
    Type: System.Object%
    Optional Object. The number of units the selection is to be moved. The default value is 1.
  • Extend
    Type: System.Object%
    Optional Object. Can be either wdMove or wdExtend. If wdMove is used, the selection is collapsed to the end point and moved down. If wdExtend is used, the selection is extended down. The default value is wdMove.

Return Value

Type: System.Int32

Remarks

The wdWindow constant can be used to move to the top or bottom of the active window. Regardless of the value of Count (greater than 1 or less than – 1), the wdWindow constant moves only one unit. Use the wdScreen constant to move more than one screen.

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.Word Namespace