TableHeaderScope 列舉

定義

表示類別的 HTML scope 屬性 (Attribute),這些類別表示表格中的標題儲存格。Represents the HTML scope attribute for classes that represent header cells in a table.

public enum class TableHeaderScope
public enum TableHeaderScope
type TableHeaderScope = 
Public Enum TableHeaderScope
繼承
TableHeaderScope

欄位

Column 2

表示表格之標題儲存格的物件,是以設定為 "Column"scope 屬性來呈現的。The object that represents a header cell of a table is rendered with the scope attribute set to "Column".

NotSet 0

scope 屬性不會為標題儲存格呈現。The scope attribute is not rendered for the header cell.

Row 1

表示表格之標題儲存格的物件,是以設定為 "Row"scope 屬性來呈現的。The object that represents a header cell of a table is rendered with the scope attribute set to "Row".

備註

在轉譯時, DataControlFieldHeaderCellTableHeaderCell類別會使用列舉型別來代表標頭儲存格的範圍。TableHeaderScopeThe TableHeaderScope enumeration is used by the DataControlFieldHeaderCell and TableHeaderCell classes to represent the scope of the header cell when it is rendered. 這兩Scope個類別的預設屬性都是 NotSet 值, 在此情況下, 不scope會針對標頭儲存格寫入任何 HTML 屬性。The default Scope property for both of these classes is the NotSet value, in which case no HTML scope attribute is written for the header cell. Scope屬性是用來提供資料格與標頭之間關聯性的相關資訊, 讓 HTML 資料表更容易存取。The Scope property is used to make HTML tables more accessible by providing information about relationships between the cells and the headers.

適用於

另請參閱