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

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

Calendar.TitleFormat プロパティ

タイトル セクション書式取得または設定します

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

Public Property TitleFormat As
 TitleFormat
Dim instance As Calendar
Dim value As TitleFormat

value = instance.TitleFormat

instance.TitleFormat = value
public TitleFormat TitleFormat { get; set;
 }
public:
property TitleFormat TitleFormat {
    TitleFormat get ();
    void set (TitleFormat value);
}
/** @property */
public TitleFormat get_TitleFormat ()

/** @property */
public void set_TitleFormat (TitleFormat value)
public function get TitleFormat
 () : TitleFormat

public function set TitleFormat
 (value : TitleFormat)

プロパティ
TitleFormat 値の 1 つ既定値MonthYear です。

例外例外
例外種類条件

ArgumentException

指定されタイトル書式が、TitleFormat 値ではありません。

解説解説
使用例使用例

TitleFormat プロパティ使用してタイトル セクションに月と年を表示する方法次のコード例示します

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

</head>
<body>

   <form runat="server">

      <h3>Calendar Example</h3>

      <asp:Calendar id="calendar1" runat="server"
           TitleFormat="MonthYear"/>
            
   </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"
           TitleFormat="MonthYear"/>
            
   </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"
           TitleFormat="MonthYear"/>
            
   </form>
        
</body>
</html>

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

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

         ' Set the title format.
         Calendar1.TitleFormat = CType(ModeList.SelectedIndex, TitleFormat)

      End Sub
  
   </script>
  
<body>

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

      Choose the title format.

      <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="ModeList"
                    AutoPostBack="True"
                    OnSelectedIndexChanged="Selection_Change"
                    runat="server">

                  <asp:ListItem> Month </asp:ListItem>
                  <asp:ListItem Selected="True">
 MonthYear </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 title format.
         Calendar1.TitleFormat = (TitleFormat)ModeList.SelectedIndex;

      }
  
   </script>
  
<body>

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

      Choose the title format.

      <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="ModeList"
                    AutoPostBack="True"
                    OnSelectedIndexChanged="Selection_Change"
                    runat="server">

                  <asp:ListItem> Month </asp:ListItem>
                  <asp:ListItem Selected="True"> MonthYear </asp:ListItem>

               </asp:DropDownList>

            </td>

         </tr>
  
   </form>

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


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

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



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

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

©2024 GRAS Group, Inc.RSS