ViewFit property

Microsoft Visio Developer Reference

ViewFit property

   Example   

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

Version added

2000

Syntax

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.

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, then the ViewFit property returns visFitNone. Attempting to set the ViewFit property of this type of window raises an exception.