MasterShortcut.ExportIcon method (Visio)

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

Syntax

expression. ExportIcon( _FileName_ , _Flags_ , _TransparentRGB_ )

expression A variable that represents a MasterShortcut object.

Parameters

Name Required/Optional Data type Description
FileName Required String The file to which to export the icon.
Flags Required Integer The format in which to write the exported file.
TransparentRGB Optional Variant The color to substitute for any transparent areas of the exported icon image.

Return value

Nothing

Remarks

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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.