# TextViewGenerator.Zoom Method

> Zooms the contents of the TextViewGenerator.

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

---

### Description

Zooms the contents of the TextViewGenerator.

### Syntax

#### Zoom(int)

Zooms the contents of the TextViewGenerator 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 TextViewGenerator 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-server/reference/txtextcontrol/zoomoption/enumeration/llms-full.txt) values. |

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.Zoom`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.Zoom(125);
Console.WriteLine("Text View Generator is ready for use.");
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

textViewGenerator.Zoom(125)
Console.WriteLine("Text View Generator is ready for use.")
```

---

## Nearby

- **Previous:** [TextViewGenerator.ViewMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/viewmode-property/llms-full.txt)
- **Next:** [UserInput Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/llms-full.txt)
