---
title: "SetCursorCmd | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/SetCursorCmd/"
---

# SetCursorCmd

> The command to set the cursor to the specified point.

## Classes

### SetCursorCmd

#### Implements

- [`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand)

#### Constructors

##### Constructor

```ts
new SetCursorCmd(textManager, initData): SetCursorCmd;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `textManager` | [`ITextManager`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ITextManager.md#itextmanager) |
| `initData` | [`SetCursorCmdData`](#setcursorcmddata) |

###### Returns

[`SetCursorCmd`](#setcursorcmd)

#### Methods

##### execute()

```ts
execute(): boolean;
```

Executes the command.

###### Returns

`boolean`

true if changes were made, false otherwise.

###### Implementation of

[`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand).[`execute`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#execute)

***

### SetCursorCmdData

Data required to initialize the command.

#### Constructors

##### Constructor

```ts
new SetCursorCmdData(point): SetCursorCmdData;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `point` | [IPoint](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/IPoint.md) |

###### Returns

[`SetCursorCmdData`](#setcursorcmddata)

#### Properties

##### point

```ts
point: IPoint;
```

The destination point for the cursor.
