TX Text Control .NET Server

Resolution Property

Property|Introduced in 29.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public int Resolution { get; set; }

Examples

The following example uses StatusBarViewGenerator.Resolution to configure resolution as part of the status bar view generator workflow. The configured value is checked before the workflow continues.

statusBarViewGenerator.Resolution = 10;
Console.WriteLine($"Resolution used by Status Bar View Generator: {statusBarViewGenerator.Resolution}");