# 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. To change the property value the control's Dock property has been set to DockStyle.None. Otherwise an exception is thrown. The default value is 100.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Drawing`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDrawing.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDrawing.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Drawing > TXDrawingControl.ZoomFactor Property
- **335 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/zoomfactor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-drawing/txdrawingcontrol/zoomfactor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-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-winforms/reference/txtextcontrol-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. To change the property value the control's `Dock` property has been set to `DockStyle.None`. Otherwise an exception is thrown. 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 change is then applied to the active document or user interface.

```csharp
tXDrawingControl.ZoomFactor = 125;
tXDrawingControl.Update();
```

```vbnet
tXDrawingControl.ZoomFactor = 125
tXDrawingControl.Update()
```

---

## Nearby

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