Calendar.CaptionAlign プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As Calendar Dim value As TableCaptionAlign value = instance.CaptionAlign instance.CaptionAlign = value
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 値。

このプロパティは、Calendar コントロールに対してキャプションを表示する位置を決定します。既定値は NotSet です。これは、キャプションの配置をブラウザが決定します。TableCaptionAlign 値とキャプションの表示状態との関係を次の表に示します。

CaptionAlign プロパティを使用して、Calendar コントロールのキャプションを配置する方法を次のコード例に示します。
<%@ Page Language="VB" AutoEventWireup="True" %> <html> <script > </script> <body> <form id="Form1" runat="server"> <h3> Calendar Caption and Caption Align Example </h3> <br><br> <asp:Calendar id="Calendar1" ShowGridLines="True" ShowTitle="True" Caption="This calendar is used to demonstrate a calendar caption. It also shows how the caption can be aligned to the calendar, in this case to the right edge of the calendar." CaptionAlign="right" runat="server"/> <br><br> </form> </body> </html>
<%@ Page Language="C#" AutoEventWireup="True" %> <html> <script > </script> <body> <form id="Form1" runat="server"> <h3> Calendar Caption and Caption Align Example </h3> <br><br> <asp:Calendar id="Calendar1" ShowGridLines="True" ShowTitle="True" Caption="This calendar is used to demonstrate a calendar caption. It also shows how the caption can be aligned to the calendar, in this case to the right edge of the calendar." CaptionAlign="right" runat="server"/> <br><br> </form> </body> </html>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- Calendar.CaptionAlign プロパティのページへのリンク