TableCaptionAlign 列挙体とは? わかりやすく解説

TableCaptionAlign 列挙体

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

HTMLキャプション要素として表示するテキスト平方向または垂直方向の配置指定します

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

Dim instance As TableCaptionAlign
public enum TableCaptionAlign
public enum class TableCaptionAlign
public enum TableCaptionAlign
public enum TableCaptionAlign
メンバメンバ
解説解説
使用例使用例

TableCaptionAlign 列挙体を使用してTable コントロールの CaptionAlign プロパティ設定する方法次の例に示しますTable コントロールには、都市 (City) と郵便番号 (ZIP Code) の値を表示する TableRow オブジェクト含まれています。

<%@ page language="VB" %>

<script runat="server">

</script>

<html>
  <head id="Head1" runat="server">
      <title>TableCaptionAlign Example</title>
  </head>
  <body>
    <form runat="server">
    <h3>TableCaptionAlign Enumeration Example</h3>
      <asp:table id="Table1" 
        runat="server" 
        caption="ZIP Code and City Mapping" 
        captionalign="Left" 
        gridlines="Both">
        <asp:TableRow id="TableRow1" 
          runat="server">
          <asp:TableCell id="TableCell1" 
            runat="server">
            City Name
          </asp:TableCell>
          <asp:TableCell id="TableCell2" 
            runat="server">
            ZIP Code
          </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow id="TableRow2" 
          runat="server">
          <asp:TableCell id="TableCell3" 
            runat="server">
            Redmond
          </asp:TableCell>
          <asp:TableCell id="TableCell4" 
            runat="server">
            98052
          </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow id="TableRow3" 
          runat="server">
          <asp:TableCell id="TableCell5" 
            runat="server">
            Albany
          </asp:TableCell>
          <asp:TableCell id="TableCell6" 
            runat="server">
            12222
          </asp:TableCell>
        </asp:TableRow>
      </asp:table>
    </form>
  </body>
</html>
<%@ page language="C#" %>

<script runat="server">

</script>

<html>
  <head id="Head1" runat="server">
      <title>TableCaptionAlign Example</title>
  </head>
  <body>
    <form id="Form1" runat="server">
    <h3>TableCaptionAlign Enumeration Example</h3>
      <asp:table id="Table1" 
        runat="server" 
        caption="ZIP Code and City Mapping" 
        captionalign="Left" 
        gridlines="Both">
        <asp:TableRow id="TableRow1" 
          runat="server">
          <asp:TableCell id="TableCell1" 
            runat="server">
            City Name
          </asp:TableCell>
          <asp:TableCell id="TableCell2" 
            runat="server">
            ZIP Code
          </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow id="TableRow2" 
          runat="server">
          <asp:TableCell id="TableCell3" 
            runat="server">
            Redmond
          </asp:TableCell>
          <asp:TableCell id="TableCell4" 
            runat="server">
            98052
          </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow id="TableRow3" 
          runat="server">
          <asp:TableCell id="TableCell5" 
            runat="server">
            Albany
          </asp:TableCell>
          <asp:TableCell id="TableCell6" 
            runat="server">
            12222
          </asp:TableCell>
        </asp:TableRow>
      </asp:table>
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
System.Web.UI.WebControls 名前空間
TableCaptionAlign 列挙
Table クラス
GridView クラス
Calendar クラス
DetailsView クラス



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

辞書ショートカット

すべての辞書の索引

TableCaptionAlign 列挙体のお隣キーワード
検索ランキング

   

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



TableCaptionAlign 列挙体のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS