# TextControl.Zoom Method

> Zooms the contents of the TextControl.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.Zoom Method
- **575 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoom-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoom-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoom-method/llms-full.txt

---

### Description

Zooms the contents of the TextControl.

### Syntax

#### Zoom(int)

Zooms the contents of the TextControl using the specified zoom factor.

```csharp
public void Zoom(int zoomFactor);
```

```vbnet
Public Sub Zoom(zoomFactor As Integer)
```

| Parameter | Description |
|---|---|
| zoomFactor | Specifies the zoom factor, in percent. |

#### Zoom(ZoomOption)

Zooms the contents of the TextControl using the specified option.

```csharp
public void Zoom(ZoomOption zoomOption);
```

```vbnet
Public Sub Zoom(zoomOption As ZoomOption)
```

| Parameter | Description |
|---|---|
| zoomOption | Specifies one of the [ZoomOption](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/zoomoption/enumeration/llms-full.txt) values. |

### Examples

The following example changes the document zoom setting. The created object is then available to the surrounding document workflow.

```csharp
textControl.Zoom(125);
Console.WriteLine("Text Control is ready for use.");
```

```vbnet
textControl.Zoom(125)
Console.WriteLine("Text Control is ready for use.")
```

### Limitations

The zoom factor must be between 10 and `ushort.MaxValue` percent, when the [TextControl.ViewMode](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/viewmode-property/llms-full.txt) property has been set to `PageView` or `Normal`. For the other modes the zoom factor must be between 10 and 400 percent.

---

## Nearby

- **Previous:** [TextControl.XmlNotWellFormed Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/xmlnotwellformed-event/llms-full.txt)
- **Next:** [TextControl.ZoomFactor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/llms-full.txt)
