ASP.NET TableRow 控件

2018-09-27 20:26 更新

ASP.NET TableRow 控件


Web Server Controls Web 服務(wù)器控件

定義和用法

TableRow 控件與 TableCell 控件和 Table 控件一起使用,來創(chuàng)建表格中的行。

提示:表格的行存儲在 Table 控件中的 Rows 集合中。


屬性

屬性 描述 .NET
Cells
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 控件。


Web Server Controls Web 服務(wù)器控件
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號