InvisibleApp.DefaultZoomBehavior property (Visio)

Determines the zoom behavior for all new Microsoft Visio documents and drawing windows. Read/write.

Syntax

expression.DefaultZoomBehavior

expression A variable that represents an InvisibleApp object.

Return value

VisZoomBehavior

Remarks

To set zoom behavior for an existing document, or for a particular window, use the ZoomBehavior property of the document and window, respectively.

The constants declared by the Visio type library in VisZoomBehavior are valid values for the DefaultZoomBehavior property.

Note

The default behavior (visZoomInPlaceContainer) is different from the behavior used in Microsoft Visio 2002, but is the same as that in earlier versions of Visio. To replicate the behavior seen in Microsoft Visio 2002, set this value to visZoomVisio.

If this value is set to the default, visZoomInPlaceContainer, Visio uses the container's IOleCommandTarget interface to perform the zoom and forces a fit-to-window zoom within the in-place window. If the container does not support IOleCommandTarget, no zooming occurs.

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.