Application.SetPreviewEnabled Method (Visio)

Turns preview on or off for a gallery in the Microsoft Visio user interface.


expression. SetPreviewEnabled( _GalleryName_ , _OnOrOff_ )

expression A variable that represents an 'Application' object.


Name Required/Optional Data Type Description
GalleryName Required String The name of the gallery for which you want to set the preview status. See Remarks.
OnOrOff Required Boolean True to turn preview on for the specified gallery; False to turn preview off.

Return Value



For the GalleryName parameter, you must pass the control ID for the specified gallery. You can find a list of control IDs for all Visio galleries by searching the MSDN library at