ImportIcon method

Microsoft Visio Developer Reference

ImportIcon method

   Example   

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

Version added

4.5

Syntax

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.

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.