TX Text Control .NET for WPF

ZoomFactor Property

Property|Introduced in 23.0
Namespace
TXTextControl.WPF.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the zoom factor, in percent, for the TX Drawing Control. When the value is changed both all drawn shapes and the control itself are resized considering to the specified zoom factor. The default value is 100.

Syntax

public int ZoomFactor { get; set; }

Examples

The following example uses TXDrawingControl.ZoomFactor to set a comfortable document zoom level. The configured value is checked before the workflow continues.

tXDrawingControl.ZoomFactor = 125;
Console.WriteLine($"Zoom Factor used by TXDrawing Control: {tXDrawingControl.ZoomFactor}");