Window.ZoomLock property (Visio)

Determines whether zooming is disabled in a Microsoft Visio drawing window. Read/write.

Syntax

expression. ZoomLock

expression A variable that represents a Window object.

Return value

Boolean

Remarks

Zooming (False) is the default Visio behavior. 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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.