System.Web.UI.WebControls.TableCaptionAlign Enumeration

Specifies the horizontal or vertical placement of the text to render as the HTML caption element.

Syntax

public enum TableCaptionAlign

Remarks

The System.Web.UI.WebControls.TableCaptionAlign enumeration represents the horizontal or vertical placement of the HTML caption element in controls that can be rendered as tables, such as System.Web.UI.WebControls.Table, System.Web.UI.WebControls.GridView, System.Web.UI.WebControls.DetailsView, or System.Web.UI.WebControls.Calendar. For example, the Table.CaptionAlign property uses these enumeration values to set the caption alignment in a System.Web.UI.WebControls.Table control.

If you specify TableCaptionAlign.NotSet, the browser in which the control is rendered determines where to align the caption.

The Table.CaptionAlign property specifies the position of the caption element with respect to controls that can be rendered as tables. The Table.Caption property specifies the text to display in the caption element. Assistive technology devices can use the description provided by the Table.Caption property to make the control more accessible. For example, a screen reader device might read the caption to the user to provide them with a description of the table.

Members

Member NameDescription
Bottom

The caption element is aligned with the bottom of the table.

Left

The caption element is aligned with the left side of the table.

NotSet

The caption alignment is not set. The browser that renders the caption determines where to align the caption.

Right

The caption element is aligned with the right side of the table.

Top

The caption element is aligned with the top of the table.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0