Selection.MoveEnd(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves the ending character position of a selection.
public int MoveEnd (ref object Unit, ref object Count);
abstract member MoveEnd : obj * obj -> int
Public Function MoveEnd (Optional ByRef Unit As Object, Optional ByRef Count As Object) As Integer
Parameters
- Count
- Object
Optional Object. The number of units to move. If this number is positive, the ending character position is moved forward in the document. If this number is negative, the end is moved backward. If the ending position overtakes the starting position, the range collapses and both character positions move together. The default value is 1.
Returns
Remarks
This method returns an integer that indicates the number of units the selection actually moved, or it returns 0 (zero) if the move was unsuccessful.