Zoom Method
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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);Public Sub Zoom(zoomFactor As Integer)| Parameter | Description |
|---|---|
| zoomFactor | Specifies the zoom factor, in percent. |
Zoom(ZoomOption)
Zooms the contents of the TextControl using the specified option.
public void Zoom(ZoomOption zoomOption);Public Sub Zoom(zoomOption As ZoomOption)| Parameter | Description |
|---|---|
| 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.");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.