ShapeRange.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.