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

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

DateTimePicker.CalendarMonthBackground プロパティ

予定表の月の背景色取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Property CalendarMonthBackground As
 Color
Dim instance As DateTimePicker
Dim value As Color

value = instance.CalendarMonthBackground

instance.CalendarMonthBackground = value
public Color CalendarMonthBackground { get;
 set; }
public:
property Color CalendarMonthBackground {
    Color get ();
    void set (Color value);
}
/** @property */
public Color get_CalendarMonthBackground ()

/** @property */
public void set_CalendarMonthBackground (Color
 value)
public function get CalendarMonthBackground
 () : Color

public function set CalendarMonthBackground
 (value : Color)

プロパティ
予定表の月の背景色を表す Color

例外例外
例外種類条件

ArgumentException

代入された値が null 参照 (Visual Basic では Nothing) です。

解説解説

DateTimePicker が作成されると、このプロパティは DefaultMonthBackColor フィールドの値と等しい値に初期設定されます

使用例使用例

CalendarMonthBackground プロパティ初期化する方法次のコード例示しますDateTimePicker作成して Form追加した後に、この例では CalendarMonthBackground プロパティ初期化して Color 定数にしています。

Public Sub New()
   Dim dateTimePicker1 As New
 DateTimePicker()
   Controls.AddRange(New Control() {dateTimePicker1})
   dateTimePicker1.CalendarMonthBackground = Color.Aqua
End Sub 
public MyClass()
{
   DateTimePicker dateTimePicker1 = new DateTimePicker();
   Controls.AddRange(new Control[] {dateTimePicker1}); 
   dateTimePicker1.CalendarMonthBackground = Color.Aqua;
}
public:
   MyClass()
   {
      DateTimePicker^ dateTimePicker1 = gcnew DateTimePicker;
      array<Control^>^ myClassControls = {dateTimePicker1};
      Controls->AddRange( myClassControls );
      dateTimePicker1->CalendarMonthBackground = Color::Aqua;
   }
public MyClass()
{
    DateTimePicker dateTimePicker1 = new DateTimePicker();
    get_Controls().AddRange(new Control[] { dateTimePicker1 });
    dateTimePicker1.set_CalendarMonthBackground(Color.get_Aqua());
} //MyClass
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DateTimePicker クラス
DateTimePicker メンバ
System.Windows.Forms 名前空間
DefaultMonthBackColor


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

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

辞書ショートカット

すべての辞書の索引

「DateTimePicker.CalendarMonthBackground プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS