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

[LocalizableAttribute(true)] public: virtual property String^ Caption { String^ get (); void set (String^ value); }
/** @property */ public String get_Caption () /** @property */ public void set_Caption (String value)
テーブル キャプション。

テーブル キャプションを使用して、1 文から 3 文までの範囲でテーブルの性質を説明します。カレンダーにキャプションを配置するには、CaptionAlign プロパティを使用します。
このプロパティの値は、設定時に、デザイナ ツールを使用してリソース ファイルに自動的に保存できます。詳細については、LocalizableAttribute、ASP.NET のグローバリゼーションおよびローカリゼーション の各トピックを参照してください。

Caption プロパティを使用して、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.Caption プロパティのページへのリンク