# ReportViewer.Range

## Content

# Class: Range

[ReportViewer](../modules/ReportViewer).Range

Represents a text range.

**`example`**
```ts
const range = new Range(0, 10);
```

## Table of contents

### Constructors

- [constructor](ReportViewer.Range#constructor)

### Properties

- [Length](ReportViewer.Range#length)
- [Start](ReportViewer.Range#start)
- [Empty](ReportViewer.Range#empty)

### Accessors

- [isEmpty](ReportViewer.Range#isempty)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new Range**(`start`, `length`)

Initializes a new instance of the [Range](ReportViewer.Range) class.

**`example`**
```ts
const range = new Range(5, 12);
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `start` | `number` | The range start. |
| `length` | `number` | The range length. |

## Properties

### <a id="length" name="length"></a> Length

• `Readonly` **Length**: `number`

Gets the range length.

___

### <a id="start" name="start"></a> Start

• `Readonly` **Start**: `number`

Gets the range start.

___

### <a id="empty" name="empty"></a> Empty

▪ `Static` `Readonly` **Empty**: [`Range`](ReportViewer.Range)

Gets an empty range instance.

## Accessors

### <a id="isempty" name="isempty"></a> isEmpty

• `get` **isEmpty**(): `boolean`

Gets a value indicating whether the range is empty.

#### Returns

`boolean`
