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

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

Calendar.ShowNextPrevMonth プロパティ

Calendar コントロールタイトル セクション前後の月へのナビゲーション要素表示するかどうか指定する値を取得または設定します

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

Public Property ShowNextPrevMonth As
 Boolean
Dim instance As Calendar
Dim value As Boolean

value = instance.ShowNextPrevMonth

instance.ShowNextPrevMonth = value
public bool ShowNextPrevMonth { get;
 set; }
public:
property bool ShowNextPrevMonth {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ShowNextPrevMonth ()

/** @property */
public void set_ShowNextPrevMonth (boolean
 value)
public function get ShowNextPrevMonth
 () : boolean

public function set ShowNextPrevMonth
 (value : boolean)

プロパティ
Calendarタイトル セクション前後の月へのナビゲーション要素表示する場合trueそれ以外場合false既定値true です。

解説解説
使用例使用例

ShowNextPrevMonth プロパティ使用してタイトル セクション前後の月へのナビゲーション コントロールを非表示にする方法次のコード例示します

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

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowNextPrevMonth="False"/>
            
   </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"
           ShowNextPrevMonth="False"/>
            
   </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"
           ShowNextPrevMonth="False"/>
            
   </form>
        

</body>
</html>

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

<html>
   <script runat="server" >
  
      Sub Check_Change(sender As Object,
 e As EventArgs)
   
         ' Show or hide the navigation controls to the next and previous
  
         ' months in the Calendar control depending on the state of
 the 
         ' ShowNextPrevMonthCheckBox CheckBox control.
         If ShowNextPrevMonthCheckBox.Checked Then

            Calendar1.ShowNextPrevMonth = True

         Else

            Calendar1.ShowNextPrevMonth = False

         End If

      End Sub
  
   </script>
  
<body>

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

      Select whether to show or
 hide the next and previous month 
      navigation controls.

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

      <br><br>

      <asp:CheckBox id="ShowNextPrevMonthCheckBox"
           Text="Show/Hide the navigation controls."
           AutoPostBack="True"
           Checked="True"
           OnCheckedChanged="Check_Change"
           runat="server"/>
  
   </form>

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

<html>
   <script runat="server" >
  
      void Check_Change(Object sender, EventArgs e)
      {
   
         // Show or hide the navigation controls to the next and previous
  
         // months in the Calendar control depending on the state of
 the 
         // ShowNextPrevMonthCheckBox CheckBox control.
         if (ShowNextPrevMonthCheckBox.Checked)
         {

            Calendar1.ShowNextPrevMonth = true;

         }
         else
         {

            Calendar1.ShowNextPrevMonth = false;

         }

      }
  
   </script>
  
<body>

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

      Select whether to show or hide the next and previous month 
      navigation controls.

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

      <br><br>

      <asp:CheckBox id="ShowNextPrevMonthCheckBox"
           Text="Show/Hide the navigation controls."
           AutoPostBack="True"
           Checked="True"
           OnCheckedChanged="Check_Change"
           runat="server"/>
  
   </form>

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


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2024 GRAS Group, Inc.RSS