<< Click to Display Table of Contents >> Zoom (object) |
Access paths:
▪Application à Windows à Item à View à Zoom
▪Application à ActiveWindow à View à Zoom
▪Application à Documents à Item à ActiveWindow à View à Zoom
▪Application à ActiveDocument à ActiveWindow à View à Zoom
1 Description
The Zoom object contains the settings for the zoom level of a document window. It is a child object of the View object.
2 Access to the object
Each document window has exactly one instance of the View object and this has in turn exactly one instance of the Zoom object. The latter is accessed through the object pointer Zoom in the View object:
' Zoom the document window to 140%
tm.ActiveWindow.View.Zoom.Percentage = 200
3 Properties, objects, collections and methods
Properties:
▪Percentage
Objects:
▪Application → Application
▪Parent → View
Percentage (property)
Data type: Long
Gets or sets the zoom level of the document window, expressed in percent.
Example:
' Zoom the document window to 140%
tm.ActiveWindow.View.Zoom.Percentage = 140
Application (pointer to object)
Data type: Object
Returns the Application object.
Parent (pointer to object)
Data type: Object
Returns the parent object, i.e. an object of the type View.