# TXDrawingControl.ZoomFactor Property

> Gets or sets the zoom factor, in percent, for the TX Drawing Control. When the value is changed both all drawn shapes and the control itself are resized considering to the specified zoom factor. The default value is 100.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.WPF.Drawing`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDrawing.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF.Drawing > TXDrawingControl.ZoomFactor Property
- **351 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/zoomfactor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/zoomfactor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/zoomfactor-property/llms-full.txt

---

### Description

Gets or sets the zoom factor, in percent, for the [TX Drawing Control](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/llms-full.txt). When the value is changed both all drawn shapes and the control itself are resized considering to the specified zoom factor. The default value is 100.

### Syntax

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

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

### Examples

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

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

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

---

## Nearby

- **Previous:** [TXDrawingControl.ViewChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-drawing/txdrawingcontrol/viewchanged-event/llms-full.txt)
- **Next:** [BookmarkDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/bookmarkdialog/llms-full.txt)
