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

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

Calendar.ShowGridLines プロパティ

Calendar コントロール日付グリッド線区切るかどうかを示す値を取得または設定します

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

Dim instance As Calendar
Dim value As Boolean

value = instance.ShowGridLines

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

/** @property */
public void set_ShowGridLines (boolean value)
public function get ShowGridLines
 () : boolean

public function set ShowGridLines
 (value : boolean)

プロパティ
Calendar コントロール日付グリッド線区切る場合trueそれ以外場合false既定値false です。

解説解説
使用例使用例

ShowGridLines プロパティ使用してCalendar コントロール日付の間にグリッド線表示する方法次のコード例示します

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

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           ShowGridLines="True"/>
            
   </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"
           ShowGridLines="True"/>
            
   </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"
           ShowGridLines="True"/>
            
   </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 gridlines in the Calendar control
         ' depending on the state of the ShowGridLinesCheckBox CheckBox
         ' control.
         If ShowGridLinesCheckBox.Checked Then

            Calendar1.ShowGridLines = True

         Else

            Calendar1.ShowGridLines = False

         End If

      End Sub
  
   </script>
  
<body>

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

      Select whether to show or
 hide the gridlines.

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

      <br><br>

      <asp:CheckBox id="ShowGridLinesCheckBox"
           Text="Show/Hide gridlines"
           AutoPostBack="True"
           Checked="False"
           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 gridlines in the Calendar control
         // depending on the state of the ShowGridLinesCheckBox CheckBox
         // control.
         if (ShowGridLinesCheckBox.Checked)
         {

            Calendar1.ShowGridLines = true;

         }
         else
         {

            Calendar1.ShowGridLines = false;

         }

      }
  
   </script>
  
<body>

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

      Select whether to show or hide the gridlines.

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

      <br><br>

      <asp:CheckBox id="ShowGridLinesCheckBox"
           Text="Show/Hide gridlines"
           AutoPostBack="True"
           Checked="False"
           OnCheckedChanged="Check_Change"
           runat="server"/>
  
   </form>

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


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2024 GRAS Group, Inc.RSS