DpiX 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 horizontal DPI value used for display-related calculations.
Syntax
public static float DpiX { get; set; }Public Shared Property DpiX As SingleExamples
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}");TXTextControl.DocumentServer.DocumentController.DpiX = 1.0
Console.WriteLine($"Dpi X used by Document Controller: {TXTextControl.DocumentServer.DocumentController.DpiX}")Remarks
The property's default value is 96.0.