ASP.NET TableRow 控件
定義和用法
TableRow 控件與 TableCell 控件和 Table 控件一起使用,來創(chuàng)建表格中的行。
提示:表格的行存儲在 Table 控件中的 Rows 集合中。
屬性
屬性 | 描述 | .NET |
---|---|---|
Cells | TableCell 對象的集合,這些對象表示 Table 控件中的行的單元格。 | |
HorizontalAlign | 表格行中內(nèi)容的水平對齊方式。 | 1.0 |
TableSection | Table 控件中 TableRow 對象的位置。 | 2.0 |
VerticalAlign | 行內(nèi)容的垂直對齊方式。 | 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 控件。