BaseDataList.Caption 属性

定义

获取或设置要在控件中的 HTML 标题元素中呈现的文本。 提供此属性的目的是使辅助技术设备的用户更易于访问控件。

public:
 virtual property System::String ^ Caption { System::String ^ get(); void set(System::String ^ value); };
public virtual string Caption { get; set; }
member this.Caption : string with get, set
Public Overridable Property Caption As String

属性值

String

一个字符串,表示要在控件中的 HTML 标题元素中呈现的文本。 默认值为空字符串 ("")。

注解

使用 Caption 属性指定要在控件的 HTML 标题元素中呈现的文本。 指定的文本为辅助技术设备提供控件的说明。

若要在控件中指定 HTML caption 元素的对齐方式,请使用 CaptionAlign 该属性。

设置时,此属性的值可以使用设计器工具自动保存到资源文件中。 有关详细信息,请参阅LocalizableAttribute全球化和本地化

适用于

另请参阅