Share via


ViewFit Property [Visio 2003 SDK Documentation]

Determines which auto-fit mode a window is in, if any.

longRet = object**.ViewFit**

object**.ViewFit** = longVal

longRet     Long. A constant that identifies the window mode.

object     Required. An expression that returns a Window object.

longVal     Long. A constant that identifies the new window mode.

Version added

2000

Remarks

The ViewFit property applies to drawing windows only, and can have the following values.

Constant Value

visFitNone

0

visFitPage

1

visFitWidth

2

If the value of the window's Type property is not visDrawing, the ViewFit property returns visFitNone. Attempting to set the ViewFit property of this type of window raises an exception.

Applies to | Window object

See Also | Type property | Zoom property