Calendar.NextPrevStyle プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Calendar.NextPrevStyle プロパティの意味・解説 

Calendar.NextPrevStyle プロパティ

前後の月へのナビゲーション要素スタイル プロパティ取得します

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

Public ReadOnly Property
 NextPrevStyle As TableItemStyle
Dim instance As Calendar
Dim value As TableItemStyle

value = instance.NextPrevStyle
public TableItemStyle NextPrevStyle { get;
 }
public:
property TableItemStyle^ NextPrevStyle {
    TableItemStyle^ get ();
}
/** @property */
public TableItemStyle get_NextPrevStyle ()
public function get NextPrevStyle
 () : TableItemStyle

プロパティ
前後の月へのナビゲーション要素スタイル プロパティ既定値は空の TableItemStyle です。

解説解説
使用例使用例

NextPrevStyle プロパティ使用して前後の月へのナビゲーション コントロールテキストを青に指定する方法次のコード例示します

<%@ Page Language="VB" AutoEventWireup="True"
 %>
<html>
<head>

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowNextPrev="True"
           NextPrevFormat="ShortMonth">

         <NextPrevStyle ForeColor="Blue">
         </NextPrevStyle>

      </asp:Calendar>
            
   </form>
        

</body>
</html>

<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowNextPrev="True"
           NextPrevFormat="ShortMonth">

         <NextPrevStyle ForeColor="Blue">
         </NextPrevStyle>

      </asp:Calendar>
            
   </form>
        

</body>
</html>

<%@ Page Language="JScript" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowNextPrev="True"
           NextPrevFormat="ShortMonth">

         <NextPrevStyle ForeColor="Blue">
         </NextPrevStyle>

      </asp:Calendar>
            
   </form>
        

</body>
</html>

<%@ Page Language="VB" AutoEventWireup="True"
 %>

<html>
   <script runat="server" >
  
      Sub Selection_Change(sender As Object,
 e As EventArgs)

         ' Set the background color for the next and previous 
         ' month controls in the Calendar.
         Calendar1.NextPrevStyle.BackColor = _
            System.Drawing.Color.FromName(ColorList.SelectedItem.Value)

      End Sub
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> Calendar NextPrevStyle Example </h3>

      Select a background color for the next
 and previous month controls
      in the calendar.

      <br><br> 
  
      <asp:Calendar id="Calendar1"
           ShowGridLines="True" 
           ShowTitle="True"
           runat="server"/>

      <br><br>

      <table cellpadding="5">

         <tr>

            <td>

               Background color:

            </td>

         </tr>

         <tr>

            <td>

               <asp:DropDownList id="ColorList"
                    AutoPostBack="True"
                    OnSelectedIndexChanged="Selection_Change"
                    runat="server">

                  <asp:ListItem Value="White">
 White </asp:ListItem>
                  <asp:ListItem Selected="True"
 Value="Silver"> Silver </asp:ListItem>
                  <asp:ListItem Value="DarkGray">
 Dark Gray </asp:ListItem>
                  <asp:ListItem Value="Khaki">
 Khaki </asp:ListItem>
                  <asp:ListItem Value="DarkKhaki">
 Dark Khaki </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 background color for the next and previous 
         // month controls in the Calendar.
         Calendar1.NextPrevStyle.BackColor = 
            System.Drawing.Color.FromName(ColorList.SelectedItem.Value);

      }
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> Calendar NextPrevStyle Example </h3>

      Select a background color for the next and previous month
 controls
      in the calendar.

      <br><br> 
  
      <asp:Calendar id="Calendar1"
           ShowGridLines="True" 
           ShowTitle="True"
           runat="server"/>

      <br><br>

      <table cellpadding="5">

         <tr>

            <td>

               Background color:

            </td>

         </tr>

         <tr>

            <td>

               <asp:DropDownList id="ColorList"
                    AutoPostBack="True"
                    OnSelectedIndexChanged="Selection_Change"
                    runat="server">

                  <asp:ListItem Value="White"> White </asp:ListItem>
                  <asp:ListItem Selected="True" Value="Silver">
 Silver </asp:ListItem>
                  <asp:ListItem Value="DarkGray"> Dark Gray </asp:ListItem>
                  <asp:ListItem Value="Khaki"> Khaki </asp:ListItem>
                  <asp:ListItem Value="DarkKhaki"> Dark Khaki </asp:ListItem>

               </asp:DropDownList>

            </td>

         </tr>
  
   </form>

</body>
</html>
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からCalendar.NextPrevStyle プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCalendar.NextPrevStyle プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCalendar.NextPrevStyle プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「Calendar.NextPrevStyle プロパティ」の関連用語

Calendar.NextPrevStyle プロパティのお隣キーワード
検索ランキング

   

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



Calendar.NextPrevStyle プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS