TXTextControl.WPF.TextControl.Zoom Method

Zooms the contents of the TextControl.

Introduced: 24.0.

Zoom(Int32)

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

[C#]
public void Zoom(int zoomFactor);
[Visual Basic]
Public Sub Zoom(ByVal zoomFactor As Integer)
Parameter Description
zoomFactor

Specifies the zoom factor, in percent.

Zoom(ZoomOption)

Zooms the contents of the TextControl using the specified option.

[C#]
public void Zoom(ZoomOption zoomOption);
[Visual Basic]
Public Sub Zoom(ByVal zoomOption As ZoomOption)
Parameter Description
zoomOption

Specifies one of the ZoomOption values.

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.

See Also