# WorkSheet

## Content

# Class: WorkSheet

Represents a worksheet.

## Methods

### getSelections()

```ts
getSelections(): Range[];
```

Retrieves the selections in the current sheet.

#### Returns

[`Range`](Range)[]

The type Range is stored in an Array.

#### Sample

```javascript
var selection = worksheet.getSelections();
```

***

### getText()

```ts
getText(row, col): string;
```

Retrieves formatted text in the cell based on the desired row and column index.

#### Parameters

##### row

`number`

The row index.

##### col

`number`

The column index.

#### Returns

`string`

Returns the formatted text of the cell.

#### Sample

```javascript
var text = worksheet.getText(0, 0);
```

***

### getValue()

```ts
getValue(row, col): any;
```

Retrieves unformatted data from the specified cell based on the desired row and column index.

#### Parameters

##### row

`number`

The row index.

##### col

`number`

The column index.

#### Returns

`any`

Object Returns the value of the cell.

#### Sample

```javascript
var value = worksheet.getValue(0, 0);
```
