ZoomFactor Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the zoom factor, in percent, for a Text Control. This is a dependency property.
Syntax
public int ZoomFactor { get; set; }Public Property ZoomFactor As IntegerExamples
The following example uses TextControl.ZoomFactor to set a comfortable document zoom level. The configured value is checked before the workflow continues.
textControl.ZoomFactor = 125;
Console.WriteLine($"Zoom Factor used by Text Control: {textControl.ZoomFactor}");textControl.ZoomFactor = 125
Console.WriteLine($"Zoom Factor used by Text Control: {textControl.ZoomFactor}")Limitations
The zoom factor must be between 10 and ushort.MaxValue percent, when the ViewMode property has been set to PageView or Normal. For the other modes the zoom factor must be between 10 and 400 percent.