Share via


ZoomLock Property [Visio 2003 SDK Documentation]

Determines whether zooming is disabled in a Microsoft Office Visio drawing window.

boolRet = object.ZoomLock

object.ZoomLock = boolValue

boolRet    Boolean. True if zooming is disabled in the active window; False if it is enabled, the default.

object    Required. An expression that returns a Window object.

boolValue    Required Boolean. True to prevent zooming in the active window; False to allow it.

Version added

2003

Remarks

Zooming (False) is the default Visio behavior. You can use the ZoomLock property to prevent zooming in any Visio drawing window, including page, master, and group windows. Attempting to set the ZoomLock for other windows, including stencil windows, ShapeSheet windows, and icon windows, will throw an exception.

The ZoomLock property setting is valid only for a given window at run time, and is not persisted (saved) in either the Visio document or the registry.

Applies to | Window object