Routines (alphabetical) > Object Classes > Graphics Object Classes > IDLgrTextEdit::MoveCursor

# IDLgrTextEdit::MoveCursor

Syntax | Arguments | Keywords | Version History

The IDLgrTextEdit::MoveCursor procedure method moves the cursor one space in the direction indicated by the direction argument. See Character Indices in Text Strings for more information.

## Syntax

Obj->[IDLgrTextEdit::]MoveCursor, Window [, DIRECTION={0 | 1 | 2 | 3}][, /SELECT]

## Arguments

### Window

An object reference to the IDLgrWindow object in which the text appears.

## Keywords

### DIRECTION

Set this keyword to specify the direction the cursor moves. Possible values are:

- 0 — left (the default)
- 1 — right
- 2 — up
- 3 — down

### SELECT

If set, this keyword moves the cursor and selects the text in the given direction. Otherwise, it moves the cursor and sets the selection length to zero. (See the SELECTION_LENGTH property of the IDLgrText object for more information.)

## Example

See IDLgrTextEdit::Delete.

## Version History

7.0.6 | Introduced