TX Text Control .NET for WPF

ZoomFactor Property

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

Description

Gets or sets the zoom factor, in percent, for a Text Control. This is a dependency property.

Syntax

public int ZoomFactor { get; set; }

Examples

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}");

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.