Image.AlternateText 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當裝置無法取得圖片時,會取得或設定替代文字顯示。 預設值是空字串 ("")。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
public:
property System::String ^ AlternateText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string AlternateText { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.AlternateText : string with get, set
Public Property AlternateText As String
屬性值
當裝置無法提供圖片時,該文字可顯示。
- 屬性
備註
替代文字會出現在不支援圖片或圖片檔案無法取得的瀏覽器中。