现在位置: 首页 > ASP.NET 教程 > 正文

ASP.NET TableRow 控件


Web Server Controls Web 服务器控件

定义和用法

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 Server Controls Web 服务器控件