Table.CaptionAlign 属性

定义

获取或设置 Table 控件中的 HTML 标题元素的水平或垂直位置。Gets or sets the horizontal or vertical position of the HTML caption element in a Table control. 提供此属性的目的是使辅助技术设备的用户更易于访问控件。This property is provided to make the control more accessible to users of Assistive Technology devices.

public:
 virtual property System::Web::UI::WebControls::TableCaptionAlign CaptionAlign { System::Web::UI::WebControls::TableCaptionAlign get(); void set(System::Web::UI::WebControls::TableCaptionAlign value); };
public virtual System.Web.UI.WebControls.TableCaptionAlign CaptionAlign { get; set; }
member this.CaptionAlign : System.Web.UI.WebControls.TableCaptionAlign with get, set
Public Overridable Property CaptionAlign As TableCaptionAlign

属性值

TableCaptionAlign 枚举值之一。One of the TableCaptionAlign enumeration values. 默认值是 NotSetThe default value is NotSet.

异常

指定的类型不是 TableCaptionAlign 枚举值之一。The specified type is not one of the TableCaptionAlign enumeration values.

注解

使用 CaptionAlign 属性可指定 Table 控件中的 HTML 标题元素的水平或垂直位置。Use the CaptionAlign property to specify the horizontal or vertical position of the HTML caption element in a Table control. 提供此属性的目的是使辅助技术设备的用户更易于访问控件。This property is provided to make the control more accessible to users of Assistive Technology devices.

此属性是使用 TableCaptionAlign 枚举值之一设置的。This property is set using one of the TableCaptionAlign enumeration values. 下表列出了可能的值。The following table lists the possible values.

Value 说明Description
NotSet 未设置标题元素的对齐方式。The caption element's alignment is not set.
Top 标题元素和表的顶部对齐。The caption element is aligned with the top of the table.
Bottom 标题元素和表的底部对齐。The caption element is aligned with the bottom of the table.
Left 标题元素与表的左侧对齐。The caption element is aligned with the left of the table.
Right Caption 元素与表的右侧对齐。The caption element is aligned with the right of the table.

Table 控件的其他辅助功能支持由 Caption 属性提供。Additional accessibility support for the Table control is provided by the Caption property. 使用 Caption 属性可以指定要在 Table 控件中的 HTML 标题元素中呈现的文本。Use the Caption property to specify the text to render in an HTML caption element in a Table control.

适用于

另请参阅