Image.AlternateText 属性
定义
获取或设置当设备无法获得图像时显示的替换文字。Gets or sets the alternate text to display when an image is not available for the device. 默认值为空字符串 ("")。The default value is an empty string (""). 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see 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
属性值
当设备无法获得图像时显示的替换文字。The alternate text to display when an image is not available for the device.
- 属性
注解
替换文本出现在不支持图像的浏览器中或图像文件不可用的位置。The alternate text appears in browsers that do not support images or where the image file is not available.