ASP.NET TableRow 控件
定義和用法
TableRow 控件與TableCell 控件和Table 控件一起使用,來創建表格中的行。
提示:表格的行存儲在Table控件中的Rows集合中。
屬性
属性 | 描述 | .NET |
---|---|---|
Cells | ||
HorizontalAlign | 表格行中内容的水平对齐方式。 | 1.0 |
TableSection | Table 控件中 TableRow 对象的位置。 | 2.0 |
VerticalAlign | 表格行中内容的垂直对齐方式。 | 1.0 |
Web 控件標準屬性
AccessKey, Attributes, BackColor, BorderColor,
BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming,
ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width
如需完整描述,請訪問Web控件標準屬性 。
控件標準屬性
AppRelativeTemplateSourceDirectory, BindingContainer,
ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer,
Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID,
Visible
如需完整描述,請訪問控件標準屬性 。
實例
Table
在本例中,我們在.aspx 文件中聲明了兩個Table 控件。
Table 2
在本例中,我們在.aspx 文件中聲明了一個Table 控件,三個TableRow 控件,和兩個TableCell 控件。
Web服務器控件