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

Table.CaptionAlign プロパティ

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

Table コントロールの HTML キャプション要素の水平位置または垂直位置を取得または設定します。このプロパティは、補助技術デバイスのユーザーにとって、より使いやすいコントロールを実現するための手段として用意されています。

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

Public Overridable Property
 CaptionAlign As TableCaptionAlign
Dim instance As Table
Dim value As TableCaptionAlign

value = instance.CaptionAlign

instance.CaptionAlign = value
public virtual TableCaptionAlign CaptionAlign { get;
 set; }
public:
virtual property TableCaptionAlign CaptionAlign {
    TableCaptionAlign get ();
    void set (TableCaptionAlign value);
}
/** @property */
public TableCaptionAlign get_CaptionAlign ()

/** @property */
public void set_CaptionAlign (TableCaptionAlign
 value)
public function get CaptionAlign
 () : TableCaptionAlign

public function set CaptionAlign
 (value : TableCaptionAlign)

プロパティ値
TableCaptionAlign 列挙値の 1 つ。既定値は NotSet です。

例外例外
例外の種類条件

ArgumentOutOfRangeException

指定した型が 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 クラス



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「TableCaptionAlign」の関連用語

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

   

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



TableCaptionAlignのページの著作権

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

©2026 GRAS Group, Inc.RSS