ExportIcon Method [Visio 2003 SDK Documentation]
Exports the icon for a Master object to a named file or the Clipboard.
object**.ExportIcon**fileName, flags, [TransparentRGB]
object Required. An expression that returns a Master object.
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.
Version added
4.5
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.
Applies to | Master object | MasterShortcut object
See Also | ImportIcon method