# Zoom Method

> Zooms the text of the TXTextControl to show the whole page, the page width or the text width with a ZoomOption constant; returns True or False.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > Zoom Method
- **250 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/zoom-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/zoom-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/zoom-method/llms-full.txt

---

Zooms the contents of the TextControl using the specified option.

Introduced: 24.0.

### Syntax

```vbscript
TXTextControl.Zoom ZoomOption
```

### Parameters

| Parameter | Description |
|---|---|
| ZoomOption | This parameter specifies how to zoom the document. Possible values are the following: |

#### ZoomOption

| Constant | Description |
|---|---|
| txWholePage (1) | The zoom factor is calculated so that the current visible page becomes completely visible. |
| txPageWidth (2) | The zoom factor is calculated so that the complete width of a page becomes visible. |
| txTextWidth (3) | The zoom factor is calculated so that the complete text of a line becomes visible. |

### Return Value

The method returns True, if the zoom factor has been changed. Otherwise, the method returns False.

### Data Types

| Name | Data type |
|---|---|
| ZoomOption | Integer |
| Return value | Boolean |

### See Also

- [Programming Category: Zooming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/zooming/llms-full.txt)

---

## Nearby

- **Previous:** [XMLNotWellFormed Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/xmlnotwellformed-event/llms-full.txt)
- **Next:** [Zoomed Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/zoomed-event/llms-full.txt)
