OLEFormat.IconLabel 属性 (Word)

返回或设置 OLE 对象的图标下面显示的文本。 读/写 String

语法

expressionIconLabel

表达 返回“OLEFormat”对象的表达式。

示例

本示例更改选定内容中第一个图形的图标下面的文字。

Dim olefTemp As OLEFormat 
 
If Selection.ShapeRange.Count >= 1 Then 
 Set olefTemp = Selection.ShapeRange(1).OLEFormat 
 With olefTemp 
 .DisplayAsIcon = True 
 .IconLabel = "My Icon" 
 End With 
End If

另请参阅

OLEFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。