Share via


Master.ImportIcon Method

Visio Automation Reference

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

Version Information
 Version Added:  Visio 4.5

Syntax

expression.ImportIcon(FileName)

expression   A variable that represents a Master object.

Parameters

Name Required/Optional Data Type Description
FileName Required String The name of the file to import.

Return Value
Nothing

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.

See Also