# RulerBarViewGenerator.Resolution Property

> Gets or sets a resolution, in dots per inch (dpi) for all images, provided through the View property. 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 > RulerBarViewGenerator.Resolution Property
- **359 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/resolution-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/resolution-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/resolution-property/llms-full.txt

---

### Description

Gets or sets a resolution, in dots per inch (dpi) for all images, provided through the [View](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/view-property/llms-full.txt) property. 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 uses `RulerBarViewGenerator.Resolution` to configure resolution as part of the ruler bar view generator workflow. The configured value is checked before the workflow continues.

```csharp
rulerBarViewGenerator.Resolution = 10;
Console.WriteLine($"Resolution used by Ruler Bar View Generator: {rulerBarViewGenerator.Resolution}");
```

```vbnet
rulerBarViewGenerator.Resolution = 10
Console.WriteLine($"Resolution used by Ruler Bar View Generator: {rulerBarViewGenerator.Resolution}")
```

---

## Nearby

- **Previous:** [RulerBarViewGenerator.ResetDisplayColors Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/resetdisplaycolors-method/llms-full.txt)
- **Next:** [RulerBarViewGenerator.ScaleUnit Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/scaleunit-property/llms-full.txt)
