NextPrevFormat 列挙体
アセンブリ: System.Web (system.web.dll 内)
構文
Public Enumeration NextPrevFormat
メンバ名 | 説明 | |
---|---|---|
CustomText | Calendar の月のナビゲーション コントロールのカスタム テキスト書式。 | |
FullMonth | Calendar の月のナビゲーション コントロールの完全な月名の書式。たとえば、"January"。 | |
ShortMonth | Calendar の月のナビゲーション コントロールの省略された月名の書式。たとえば、"Jan"。 |
NextPrevFormat 列挙体は、Calendar の翌月と前月のボタン用の異なるスタイルを表します。
CustomText を使用すると、プログラマはナビゲーション コントロールのカスタム テキストを指定できます。
<%@ Page Language="VB" AutoEventWireup="True" %> <html> <script runat="server" > Sub Selection_Change(sender As Object, e As EventArgs) ' Set the format for the next and previous month controls. Calendar1.NextPrevFormat = _ CType(DayList.SelectedIndex, NextPrevFormat) End Sub </script> <body> <form runat="server"> <h3> Calendar NextPrevFormat Example </h3> Select a format for the next and previous month controls. <br><br> <asp:Calendar id="Calendar1" ShowGridLines="True" ShowTitle="True" runat="server"/> <br><br> <table cellpadding="5"> <tr> <td> Format: </td> </tr> <tr> <td> <asp:DropDownList id="DayList" AutoPostBack="True" OnSelectedIndexChanged="Selection_Change" runat="server"> <asp:ListItem Selected="True"> Custom </asp:ListItem> <asp:ListItem> ShortMonth </asp:ListItem> <asp:ListItem> FullMonth </asp:ListItem> </asp:DropDownList> </td> </tr> </form> </body> </html>
<%@ Page Language="C#" AutoEventWireup="True" %> <html> <script runat="server" > void Selection_Change(Object sender, EventArgs e) { // Set the format for the next and previous month controls. Calendar1.NextPrevFormat = (NextPrevFormat)DayList.SelectedIndex; } </script> <body> <form runat="server"> <h3> Calendar NextPrevFormat Example </h3> Select a format for the next and previous month controls. <br><br> <asp:Calendar id="Calendar1" ShowGridLines="True" ShowTitle="True" runat="server"/> <br><br> <table cellpadding="5"> <tr> <td> Format: </td> </tr> <tr> <td> <asp:DropDownList id="DayList" AutoPostBack="True" OnSelectedIndexChanged="Selection_Change" runat="server"> <asp:ListItem Selected="True"> Custom </asp:ListItem> <asp:ListItem> ShortMonth </asp:ListItem> <asp:ListItem> FullMonth </asp:ListItem> </asp:DropDownList> </td> </tr> </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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
Weblioに収録されているすべての辞書からNextPrevFormat 列挙体を検索する場合は、下記のリンクをクリックしてください。
全ての辞書からNextPrevFormat 列挙体 を検索
- NextPrevFormat 列挙体のページへのリンク