DpiY Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the vertical DPI value used for display-related calculations.
Syntax
public static float DpiY { get; set; }Public Shared Property DpiY As SingleExamples
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}");TXTextControl.DocumentServer.DocumentController.DpiY = 1.0
Console.WriteLine($"Dpi Y used by Document Controller: {TXTextControl.DocumentServer.DocumentController.DpiY}")Remarks
The property's default value is 96.0.