Selection.EndOf(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 or extends the ending character position of a selection to the end of the nearest specified text unit.
public int EndOf (ref object Unit, ref object Extend);
abstract member EndOf : obj * obj -> int
Public Function EndOf (Optional ByRef Unit As Object, Optional ByRef Extend As Object) As Integer
Parameters
- Extend
- Object
Optional Object. WdMovementType.
Returns
Remarks
This method returns a value that indicates the number of character positions the selection was moved or extended (movement is forward in the document).
If the both the starting and ending positions for the selection are already at the end of the specified unit, this method doesn't move or extend the selection.