Image.AlternateText 屬性

定義

取得或設定當影像無法供裝置使用時要顯示的替代文字。 預設值為空字串 ("")。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with 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

屬性值

當影像無法供裝置使用時要顯示的替代文字。

屬性

備註

替代文字會出現在不支援影像的瀏覽器中,或是無法使用圖像檔的位置。

適用於

另請參閱