編輯

共用方式為


Selection.MoveRight(Object, Object, Object) Method

Definition

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

public int MoveRight (ref object Unit, ref object Count, ref object Extend);
abstract member MoveRight : obj * obj * obj -> int
Public Function MoveRight (Optional ByRef Unit As Object, Optional ByRef Count As Object, Optional ByRef Extend As Object) As Integer

Parameters

Unit
Object

Optional WdUnits. The unit by which the selection is to be moved.

Count
Object

Optional Object. The number of units the selection is to be moved. The default value is 1.

Extend
Object

Optional Object. Can be either wdMove or wdExtend. If wdMove is used, the selection is collapsed to the end point and moved to the right. If wdExtend is used, the selection is extended to the right. The default value is wdMove.

Returns

Remarks

When the Unit is wdCell, the Extend argument will only be wdMove.

Applies to