TX Text Control .NET for Windows Forms

Zoom Method

Method|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Zooms the contents of the TextControl.

Syntax

Zoom(int)

Zooms the contents of the TextControl using the specified zoom factor.

public void Zoom(int zoomFactor);
ParameterDescription
zoomFactor

Specifies the zoom factor, in percent.

Zoom(ZoomOption)

Zooms the contents of the TextControl using the specified option.

public void Zoom(ZoomOption zoomOption);
ParameterDescription
zoomOption

Specifies one of the ZoomOption values.

Examples

The following example changes the document zoom setting. The created object is then available to the surrounding document workflow.

textControl.Zoom(125);
Console.WriteLine("Text Control is ready for use.");

Limitations

The zoom factor must be between 10 and ushort.MaxValue percent, when the TextControl.ViewMode property has been set to PageView or Normal. For the other modes the zoom factor must be between 10 and 400 percent.