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.
The caption element is aligned with the bottom of the table.
The caption element is aligned with the left side of the table.
The caption alignment is not set. The browser that renders the caption determines where to align the caption.
The caption element is aligned with the right side of the table.
The caption element is aligned with the top of the table.