ZoomFactor Property
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property ZoomFactor As IntegerExamples
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}");tXDrawingControl.ZoomFactor = 125
Console.WriteLine($"Zoom Factor used by TXDrawing Control: {tXDrawingControl.ZoomFactor}")