Table of contents
Collapse the table of content
Expand the table of content

InvisibleApp.SetPreviewEnabled Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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


expression . SetPreviewEnabled( GalleryName , OnOrOff )

expression A variable that represents an InvisibleApp object.


NameRequired/OptionalData TypeDescription
GalleryNameRequiredStringThe name of the gallery for which to set the preview status.
OnOrOffRequiredBooleanTrue 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

© 2018 Microsoft