# TextViewGenerator.Resolution Property

> Gets or sets a resolution, in dots per inch (dpi). This resolution is used for all images, provided through the View property and for all dialogboxes provided through the GetDialogBox method. When this property is set to zero, the system resolution is used.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.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.Resolution Property
- **506 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/resolution-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/resolution-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/resolution-property/llms-full.txt

---

### Description

Gets or sets a resolution, in dots per inch (dpi). This resolution is used for all images, provided through the [View](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/view-property/llms-full.txt) property and for all dialogboxes provided through the [GetDialogBox](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/getdialogbox-method/llms-full.txt) method. When this property is set to zero, the system resolution is used.

### Syntax

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

```vbnet
Public Property Resolution As Integer
```

### Examples

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

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

textViewGenerator.Resolution = 10;
Console.WriteLine($"Resolution used by Text View Generator: {textViewGenerator.Resolution}");
```

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

textViewGenerator.Resolution = 10
Console.WriteLine($"Resolution used by Text View Generator: {textViewGenerator.Resolution}")
```

---

## Nearby

- **Previous:** [TextViewGenerator.RemoveDateControl Event](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/removedatecontrol-event/llms-full.txt)
- **Next:** [TextViewGenerator.RulerBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/rulerbar-property/llms-full.txt)
