AlternativeText 属性 (Word)ShapeRange.AlternativeText property (Word)

返回或设置与网页中的形状相关联的可选文字。Returns or sets the alternative text associated with a shape in a webpage. 读/写 StringRead/write String.



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


本示例实现的功能是:为活动窗口中选定的图形设定可选文字。The following example sets the alternative text for the selected shape in the active window. 选定图形是一幅野鸭的图片。The selected shape is a picture of a mallard duck.

ActiveWindow.Selection.ShapeRange _ 
 .AlternativeText = "This is a mallard duck."

另请参阅See also

ShapeRange 集合对象ShapeRange Collection Object

支持和反馈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.