Share via


ImportIcon Method [Visio 2003 SDK Documentation]

Imports the icon for a Master object from a named file.

object**.ImportIcon**fileName

object     Required. An expression that returns the Master or MasterShortcut object to receive the new icon.

fileName     Required String. The name of the file to import.

Version added

4.5

Remarks

The ImportIcon method can only import files that were produced by exporting a master icon in the application's internal icon format (visIconFormatVisio)—it does not accept icons in other file formats.

Applies to | Master object | MasterShortcut object

See Also | ExportIcon method