ASP.NET Table控件
Web 服务器控件
定義と用法
Table コントロールは TableCell コントロールおよび TableRow コントロールと組み合わせて、テーブルを作成するために使用します。
属性
| 属性 | 描述 | .NET |
|---|---|---|
| BackImageUrl | テーブルの背景画像のURL。 | 1.0 |
| Caption | テーブルのタイトル。 | 2.0 |
| CaptionAlign | タイトルテキストの配置方法。 | 2.0 |
| CellPadding | セルの境界線とコンテンツの間隔。 | 1.0 |
| CellSpacing | セル間隔。 | 1.0 |
| GridLines | テーブルのグリッド線の書式 | 1.0 |
| HorizontalAlign | ページ内でのテーブルの水平方向の配置。 | 1.0 |
| Rows | テーブル内の行コレクション。 | 1.0 |
| runat | このコントロールがサーバーコントロールであることを指定します。"server" に設定する必要があります。 | 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 ファイル内に 2 つの Table コントロールを宣言します。
Table 2
この例では、.aspx ファイル内に 1 つの Table コントロール、3 つの TableRow コントロール、および 2 つの TableCell コントロールを宣言します。
Web 服务器控件 其他扩展