PowerTools SPREAD for Windows Forms 8.0J
BackColor プロパティ (DropDownCalendar)


ドロップダウンカレンダーの背景色を取得または設定します。
構文
'Declaration
 
Public Property BackColor As Color
'使用法
 
Dim instance As DropDownCalendar
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
public Color BackColor {get; set;}

プロパティ値

背景色を表すColor値。 既定値はColor [Window]です。
例外
例外説明
System.ArgumentException値が有効ではありません。
解説
BackColor プロパティを使用すると、コントロールの背景色をフォームの配色に融合させることができます。
次のサンプルコードは、BackColor プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
datecell.DropDownCalendar.BackColor = Color.Red;
datecell.DropDownCalendar.CalendarDimensions = new Size(3, 1);
datecell.DropDownCalendar.Font = new Font("Arial", 10, FontStyle.Bold);
datecell.DropDown.AllowDrop = true;
datecell.DropDown.AllowResize = true;
datecell.DropDown.AutoDropDown = true;
datecell.DefaultActiveField = datecell.Fields[2];
Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
FpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
datecell.DropDownCalendar.BackColor = Color.Red
datecell.DropDownCalendar.CalendarDimensions = New Size(3, 1)
datecell.DropDownCalendar.Font = New Font("Arial", 10, FontStyle.Bold)
datecell.DropDown.AllowDrop = True
datecell.DropDown.AllowResize = True
datecell.DropDown.AutoDropDown = True
datecell.DefaultActiveField = datecell.Fields(2)
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.