Share via


DefaultZoomBehavior Property [Visio 2003 SDK Documentation]

Determines the zoom behavior for all new Microsoft Office Visio 2003 documents and drawing windows.

retVal = object**.DefaultZoomBehavior**

object**.DefaultZoomBehavior** = newVal

retVal     VisZoomBehavior. The current zoom behavior for all new documents and drawing windows.

object     Required. An expression that returns an Application object.

newVal     Required VisZoomBehavior. The new zoom behavior for all new documents and drawing windows.

Version added

2002

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 following constants declared by the Visio type library in VisZoomBehavior are valid values for retVal and newVal.

Constant Value Description

visZoomNone

0

Undefined zoom behavior; use the zoom behavior of the document or application

visZoomInPlaceContainer

1

The container performs the zoom. This is the default.

visZoomVisio

2

Visio performs the zoom.

visZoomVisioExact

4

Visio zooms when open in place; Visio does not adjust the zoom level

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.

Applies to | Application object | InvisibleApp object

See Also | ZoomBehavior property