ImportIcon 方法 (Visio)Master.ImportIcon method (Visio)

从已命名的文件中导入Master对象的图标。Imports the icon for a Master object from a named file.


expressionexpression. ImportIcon( _FileName_ )

_表达式_一个代表**Master** 对象的变量。expression A variable that represents a Master object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
FileNameFileName 必需Required StringString 要导入的文件的名称。The name of the file to import.

返回值Return value



ImportIcon方法只能导入通过在应用程序的内部图标格式 (visIconFormatVisio) 中导出主控形状图标生成的文件;它不接受其他文件格式的图标。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.

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.