Table.CaptionAlignとは? わかりやすく解説

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 クラス



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

辞書ショートカット

すべての辞書の索引

「Table.CaptionAlign」の関連用語

Table.CaptionAlignのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS