DefaultZoomBehavior property
DefaultZoomBehavior property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Determines the zoom behavior of a new document.
Version added
2002
Syntax
|
|
retVal |
VisZoomBehavior. The zoom behavior for all new documents. |
object |
Required. An expression that returns an Application object. |
newVal |
Required VisZoomBehavior. The new zoom behavior for all new documents. |
Remarks
A document's zoom behavior determines how the document zooms when it is shown in-place. To set this behavior for an existing document, use the ZoomBehavior property.
The following constants declared by the Visio type library in VisZoomBehavior are valid values for retVal and newVal.
Constant |
Value |
Description |
visZoomInPlaceContainer |
1 |
The container performs the zoom. |
visZoomVisio |
2 |
Visio performs the zoom. The default. |
Note The default behavior (visZoomVisio) is different from the behavior used in versions earlier than Visio 2002. To replicate the behavior seen in earlier versions, set this value to visZoomInPlaceContainer.
If this value is set to 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.