Selection.Next(Object, Object) Method

Definition

Returns a Range object that represents the specified unit relative to the specified selection.

public Microsoft.Office.Interop.Word.Range Next (ref object Unit, ref object Count);
abstract member Next : obj * obj -> Microsoft.Office.Interop.Word.Range
Public Function Next (Optional ByRef Unit As Object, Optional ByRef Count As Object) As Range

Parameters

Unit
Object

Optional Object. The type of units by which to count. Can be any WdUnits constant.

Count
Object

Optional Object. The number of units by which you want to move ahead. The default value is one.

Returns

Remarks

If the selection is just before the specified Unit, the selection is moved to the following unit.

Applies to