ExportIcon method
Exports the icon for a Master object to a named file or the Clipboard.
Version added
4.5
Syntax
| |
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. |
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 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.