TableRow.TableSection プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TableRow.TableSection プロパティの意味・解説 

TableRow.TableSection プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

Table コントロール内の TableRow オブジェクトの場所を取得または設定します

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

Public Overridable Property
 TableSection As TableRowSection
Dim instance As TableRow
Dim value As TableRowSection

value = instance.TableSection

instance.TableSection = value
public virtual TableRowSection TableSection { get;
 set; }
public:
virtual property TableRowSection TableSection {
    TableRowSection get ();
    void set (TableRowSection value);
}
/** @property */
public TableRowSection get_TableSection ()

/** @property */
public void set_TableSection (TableRowSection
 value)
public function get TableSection
 () : TableRowSection

public function set TableSection
 (value : TableRowSection)

プロパティ
TableRowSection 値。既定値は TableBody です。

例外例外
例外種類条件

ArgumentOutOfRangeException

TableRowSection が有効ではありません。

解説解説
使用例使用例

TableSection プロパティ使用してTable コントロールヘッダー行およびフッター行を定義する方法次のコード例示します

<%@ Page language="VB" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing"
 %>

<html>
    <head>
        <script runat="server">
        </script>
    </head>

    <body>
        <form runat="server">
            <h1>TableRow.TableFooter Example</h1>
            <asp:table id="Table1" runat="server"
 CellPadding="3" CellSpacing="3">
                <asp:TableRow TableSection=TableHeader BackColor=pink>
                    <asp:TableCell Text="Header"></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:TableRow TableSection=TableFooter BackColor=pink>
                    <asp:TableCell Text="Footer"></asp:TableCell>
                </asp:TableRow>
            </asp:table>
        </form>
    </body>
</html>
<%@ Page language="C#" AutoEventWireup="true"
 %>
<%@ Import Namespace="System.Drawing" %>

<html>
    <head>
        <script runat="server">
        </script>
    </head>

    <body>
        <form runat="server">
            <h1>TableRow.TableFooter Example</h1>
            <asp:table id="Table1" runat="server" CellPadding="3"
 CellSpacing="3">
                <asp:TableRow TableSection=TableHeader BackColor=pink>
                    <asp:TableCell Text="Header"></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:TableRow TableSection=TableFooter BackColor=pink>
                    <asp:TableCell Text="Footer"></asp:TableCell>
                </asp:TableRow>
            </asp:table>
        </form>
    </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TableRow クラス
TableRow メンバ
System.Web.UI.WebControls 名前空間
TableRowSection
その他の技術情報
Table、TableRow、TableCell の各 Web サーバー コントロール



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

辞書ショートカット

すべての辞書の索引

「TableRow.TableSection プロパティ」の関連用語

TableRow.TableSection プロパティのお隣キーワード
検索ランキング

   

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



TableRow.TableSection プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS