Share via


Window.ViewFit Property

Visio Automation Reference

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

Version Information
 Version Added:  Visio 2000

Syntax

expression.ViewFit

expression   A variable that represents a Window object.

Return Value
Long

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.

See Also