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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

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

   

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



DateTimePicker.CalendarMonthBackground プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS