> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Other classes: Formatting and styles

## `TextRange`

`Excel.TextRange`: characters \[start, start + length) of a shape's text.

Import from `@reductoai/xlsx/officejs`.

### TextRange properties

| Name | Type | Description |
| - | - | - |
| `font` | `ShapeFont` | read-only |
| `text` | `string` | |

### `TextRange.getSubstring()`

```ts theme={null}
getSubstring(start: number, length?: number): TextRange
```

### `TextRange.set()`

```ts theme={null}
set(properties: TextRange | UpdateData<TextRange>, options?: UpdateOptions): void
```
