TX Text Control .NET Server

DpiX Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the horizontal DPI value used for display-related calculations.

Syntax

public static float DpiX { get; set; }

Examples

The following example uses DocumentController.DpiX to configure dpi x as part of the document controller workflow. The configured value is checked before the workflow continues.

TXTextControl.DocumentServer.DocumentController.DpiX = 1.0f;
Console.WriteLine($"Dpi X used by Document Controller: {TXTextControl.DocumentServer.DocumentController.DpiX}");

Remarks

The property's default value is 96.0.