TableFooterRow クラスとは? わかりやすく解説

TableFooterRow クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

Table コントロールフッター行を表します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class TableFooterRow
    Inherits TableRow
Dim instance As TableFooterRow
public class TableFooterRow : TableRow
public ref class TableFooterRow : public
 TableRow
public class TableFooterRow extends TableRow
public class TableFooterRow extends
 TableRow
解説解説

TableFooterRow クラスTable コントロールフッター行を表します。このクラスでは、画面サイズ限られたデバイステーブル表示できます。これらのデバイスでは、多数の列と行を含むテーブルは、複数ページ分けて表示する必要がありますTableFooterRowTable コントロール追加すると、テーブルビュー表示するページ最後の行としてフッター行を表示するように指定できます画面サイズ限られているデバイス表示されるテーブルビュー形式詳細については、「Table」を参照してください

TableFooterRow オブジェクト格納できるのは TableCell オブジェクトだけです。TableFooterRow内容追加するには、1 つ上の TableCell オブジェクトを行に追加する必要があります次に、行の各 TableCell オブジェクトText プロパティ設定して、各セル内容指定します。または、コントロールTableCell オブジェクト追加してその内容指定することもできます

Cells コレクション使用すると、TableFooterRow 内のセルプログラムにより管理できますCells コレクション行内セルを表す TableCell オブジェクトコレクションです。

TableFooterRow は、行の内容表示する方法制御できるプロパティを TableRow から継承します。たとえば、HorizontalAlign プロパティと VerticalAlign プロパティ使用して内容配置指定します

使用例使用例

TableHeaderRow と TableFooterRow を持つ Table コントロール作成する宣言構文コード例次に示します

<%@ Page Language="VB" %>

<html>
    <body>
        <form ID="Form1" runat="server">
        
            <h3>TableHeaderRow and TableFooterRow Example</h3>
              
            <asp:table id="Table1" runat="server"
 
                CellPadding="3" 
                CellSpacing="3"
                runat="server">
                
                <asp:TableHeaderRow id=Table1HeaderRow 
                    runat="server">
                    <asp:TableCell Text="The header row."></asp:TableCell>
                </asp:TableHeaderRow>              
                 
                <asp:TableRow>
                    <asp:TableCell Text="(0,0)"></asp:TableCell>
                    <asp:TableCell Text="(0,1)"></asp:TableCell>
                    <asp:TableCell Text="(0,2)"></asp:TableCell>
                </asp:TableRow>
                
                <asp:TableRow>
                    <asp:TableCell Text="(1,0)"></asp:TableCell>
                    <asp:TableCell Text="(1,1)"></asp:TableCell>
                    <asp:TableCell Text="(1,2)"></asp:TableCell>
                </asp:TableRow> 
                
                <asp:TableFooterRow id="Table1FooterRow"
                    runat="server">
                    <asp:TableCell Text="The footer row."></asp:TableCell>
                </asp:TableFooterRow>                               
                                                   
            </asp:table>
                        
        </form>
    </body>
</html>

TableHeaderRowTableFooterRow を持つ Table コントロールプログラムによって作成する方法コード例次に示します

メモメモ

次のコード サンプルはシングルファイル コード モデル使用しており、分離コード ファイル直接コピーされ場合正常に動作しない可能性あります。このコード サンプルは、拡張子.aspx の空のテキスト ファイルコピーする必要がありますWeb フォームコード モデル詳細については、「ASP.NET Web ページコード モデル」を参照してください

<%@ Page Language="VB" %>

<html>
    <head>
        <script runat="server">
            Private Sub Page_Load(sender As
 Object, e As System.EventArgs)
                
                ' Add rows to the table.
                Dim i As Integer
                For i = 0 To 100
                    Dim tempRow As New
 TableRow
                    Dim j As Integer
                    For j = 0 To 2
                        Dim tempCell As New
 TableCell
                        tempCell.Text = "(" &
 i & "," & j & ")"
                        tempRow.Cells.Add(tempCell)
                    Next j
                    Table1.Rows.Add(tempRow)
                Next i
                
                ' Create a TableHeaderRow.
                Dim headerRow As New
 TableHeaderRow
                
                ' Create TableCell objects to contain the text for the
 header.
                Dim headerTableCell1 As New
 TableCell
                Dim headerTableCell2 As New
 TableCell
                Dim headerTableCell3 As New
 TableCell
                headerTableCell1.Text = "Column 1 header"
                headerTableCell2.Text = "Column 2 header"
                headerTableCell3.Text = "Column 3 header"
                
                ' Add the TableCell objects to the Cells
                ' collection of the TableHeaderRow.
                headerRow.Cells.Add(headerTableCell1)
                headerRow.Cells.Add(headerTableCell2)
                headerRow.Cells.Add(headerTableCell3)

                ' Add the TableHeaderRow as the first item 
                ' in the Rows collection of the table.
                Table1.Rows.AddAt(0, headerRow)
                
                ' Create a TableFooterRow.
                Dim footerRow As New
 TableFooterRow
                
                ' Create TableCell objects to contain the text for the
 footer.
                Dim footerTableCell1 As New
 TableCell
                Dim footerTableCell2 As New
 TableCell
                Dim footerTableCell3 As New
 TableCell
                footerTableCell1.Text = "Column 1 footer"
                footerTableCell2.Text = "Column 2 footer"
                footerTableCell3.Text = "Column 3 footer"

                ' Add the TableCell objects to the Cells
                ' collection of the TableFooterRow.
                footerRow.Cells.Add(footerTableCell1)
                footerRow.Cells.Add(footerTableCell2)
                footerRow.Cells.Add(footerTableCell3)

                ' Add the TableFooterRow to the Rows
                ' collection of the table.
                Table1.Rows.Add(footerRow)
                
            End Sub
        </script>
    </head>

    <body>
        <form ID="Form1" runat="server">
        
            <h3>TableHeaderRow and TableFooterRow Example</h3>
              
            <asp:table id="Table1"  
                CellPadding="3" 
                CellSpacing="3"
                Gridlines="Both"
                runat="server">                                                          
            </asp:table>
            
        </form>
    </body>
</html>
.NET Framework のセキュリティ.NET Frameworkセキュリティ
継承階層継承階層
System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
       System.Web.UI.WebControls.TableRow
        System.Web.UI.WebControls.TableFooterRow
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TableFooterRow メンバ
System.Web.UI.WebControls 名前空間
TableHeaderRow
Table クラス
その他の技術情報
Table、TableRow、TableCell の各 Web サーバー コントロール



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「TableFooterRow クラス」の関連用語

TableFooterRow クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TableFooterRow クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS