語言

Image.AlternateText 屬性

定義

當裝置無法取得圖片時,會取得或設定替代文字顯示。 預設值是空字串 ("")。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &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

屬性值

當裝置無法提供圖片時,該文字可顯示。

屬性

備註

替代文字會出現在不支援圖片或圖片檔案無法取得的瀏覽器中。

適用於

另請參閱