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

# SelectParagraphCmd

> The command to select a paragraph relative to the current cursor position.

## Classes

### SelectParagraphCmd

#### Implements

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

#### Constructors

##### Constructor

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

###### Parameters

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

###### Returns

[`SelectParagraphCmd`](#selectparagraphcmd)

#### 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)

***

### SelectParagraphCmdData

Data required to initialize the command.

#### Constructors

##### Constructor

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

###### Parameters

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

###### Returns

[`SelectParagraphCmdData`](#selectparagraphcmddata)

#### Properties

##### point

```ts
point: IPoint;
```

A point for selecting a word.
