Share via


CharRight Method

Home Page (Objects)OverviewFAQReference

Applies to: TextSelection object

Moves the insertion point one character to the right.

Syntax

object**.CharRight** [extend][, count]

Parameters

object

An expression that evaluates to a TextSelection object.

extend

(Optional) A string constant of type DsMovementOptions that specifies what to do with the selection. Possible values are:

  • dsExtend   Extends the selection.This is the same as pressing SHIFT+RIGHT ARROW.

  • dsMove   Does not extend the selection (the default).

count

(Optional) A Long that specifies the number of times you want to repeat this action. The default is one.

Remarks

The CharRight method has the same effect as pressing the RIGHT ARROW key.

Example

The following example extends the current selection to the right by two characters:

ActiveDocument.Selection.CharRight dsExtend 2

See Also   CharLeft method, WordLeft method, WordRight method.