TableHeaderScope 枚举

定义

表示某些类的 HTML scope 特性,这些类表示表中的标头单元格。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

呈现表示表标头单元格的对象,并将 scope 属性设置为 "Column"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

呈现表示表标头单元格的对象,并将 scope 属性设置为 "Row"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.

适用于

另请参阅