TX Text Control .NET for WPF

DpiY Property

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

Description

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

Syntax

public static float DpiY { get; set; }

Examples

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

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

Remarks

The property's default value is 96.0.