TXTextControl.Zoom Method

Zooms the contents of the TextControl using the specified option.

Introduced: 24.0.

Syntax

TXTextControl.Zoom ZoomOption
Parameter Description
ZoomOption

This parameter specifies how to zoom the document. Possible values are the following:


Constant Description
txWholePage (1) The zoom factor is calculated so that the current visible page becomes completely visible.
txPageWidth (2) The zoom factor is calculated so that the complete width of a page becomes visible.
txTextWidth (3) The zoom factor is calculated so that the complete text of a line becomes visible.

Return Value

The method returns True, if the zoom factor has been changed. Otherwise, the method returns False.

Data Types

ZoomOption:    Integer
Return value:    Boolean

See Also