# TextControl.ZoomFactor Property

> Gets or sets the zoom factor, in percent, for a Text Control.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.ZoomFactor Property
- **481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/zoomfactor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/zoomfactor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/zoomfactor-property/llms-full.txt

---

### Description

Gets or sets the zoom factor, in percent, for a Text Control.

### Syntax

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

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

### Examples

The following XAML example shows how to Bind the ZoomFactor property to a slider using the [WPF.LogarithmicConverter](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/logarithmicconverter/llms-full.txt).

```plaintext
…
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
…
<Window.Resources>
   <tx:LogarithmicConverter
      x:Key="logConv"
      InputMinimum="10"
      InputCenter="100"
      InputMaximum="400"
      OutputMinimum="0"
      OutputMaximum="100" />
</Window.Resources>
…
<Slider
   Minimum="0"
   Maximum="100"
   Value="{Binding ElementName=textControl1, Path=ZoomFactor, Converter={StaticResource logConv}}" />
```

The following example uses `TextControl.ZoomFactor` to set a comfortable document zoom level. The change is then applied to the active document or user interface.

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

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

### Limitations

The zoom factor must be between 10 and `ushort.MaxValue` percent, when the [TextControl.ViewMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/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.Zoomed Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/zoomed-event/llms-full.txt)
- **Next:** [TextEditorException Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/texteditorexception/llms-full.txt)
