Share via


Master.ExportIcon Method

Visio Automation Reference

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

Version Information
 Version Added:  Visio 4.5

Syntax

expression.ExportIcon(FileName, Flags, [TransparentRGB])

expression   A variable that represents a Master 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.

See Also