# TextControl.ZoomFactor Property

> Gets or sets the zoom factor, in percent, for a Text Control. This is a dependency property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 16.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.ZoomFactor Property
- **366 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoomfactor-property/llms-full.txt

---

### Description

Gets or sets the zoom factor, in percent, for a Text Control. This is a dependency property.

### Syntax

```csharp
public int ZoomFactor { get; set; }
```

```vbnet
Public Property ZoomFactor As Integer
```

### Examples

The following example uses `TextControl.ZoomFactor` to set a comfortable document zoom level. The configured value is checked before the workflow continues.

```csharp
textControl.ZoomFactor = 125;
Console.WriteLine($"Zoom Factor used by Text Control: {textControl.ZoomFactor}");
```

```vbnet
textControl.ZoomFactor = 125
Console.WriteLine($"Zoom Factor used by Text Control: {textControl.ZoomFactor}")
```

### Limitations

The zoom factor must be between 10 and `ushort.MaxValue` percent, when the [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.Zoom Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/zoom-method/llms-full.txt)
- **Next:** [TextControlColors Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/llms-full.txt)
