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

MasterShortcut.ExportIcon Method (Visio)

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

Exports the icon for a Master object to a named file or the Clipboard.


expression . ExportIcon( FileName , Flags , TransparentRGB )

expression A variable that represents a MasterShortcut object.


NameRequired/OptionalData TypeDescription
FileNameRequiredStringThe file to which to export the icon.
FlagsRequiredIntegerThe format in which to write the exported file.
TransparentRGBOptionalVariantThe color to substitute for any transparent areas of the exported icon image.

Return Value



If FileName is empty, the master's icon is copied to the Clipboard.

If the value of Flags is visIconFormatVisio (0), the icon is exported in the application internal icon format. The ImportIcon method accepts files written in this format.

If the value of Flags is visIconFormatBMP (2), the icon is exported in bitmap (.bmp) file format.

Starting with Microsoft Visio 2000, you can use the TransparentRGB argument with the ExportIcon method. If TransparentRGB is omitted, the color defaults to black, which simulates Visio 5.0 behavior.

© 2018 Microsoft