GrapeCity SPREAD for Windows Forms 12.0J
ItemStyle プロパティ (DropDownCalendar)


各項目のスタイルを取得または設定します。
構文
'Declaration
 
Public Property ItemStyle As Style
'使用法
 
Dim instance As DropDownCalendar
Dim value As Style
 
instance.ItemStyle = value
 
value = instance.ItemStyle
public Style ItemStyle {get; set;}

プロパティ値

各項目のスタイルを示す Style オブジェクト。
解説
このプロパティは、このDropDownCalendarの各項目(日付項目または月項目)の表示スタイルを決定します。
次のサンプルコードは、ItemStyleプロパティを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.ItemStyle.BackColor = Color.Bisque;
gcDateTimeCell1.DropDownCalendar.Lines = new GrapeCity.Win.Spread.InputMan.CellType.Grid(new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dotted, Color.Brown), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Double, Color.Red), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Green), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Violet), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Thistle), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), GrapeCity.Win.Spread.InputMan.CellType.VerticalFlags.HeaderOnly);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.ItemStyle.BackColor = Color.Bisque
gcDateTimeCell1.DropDownCalendar.Lines = New GrapeCity.Win.Spread.InputMan.CellType.Grid(New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dotted, Color.Brown), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Double, Color.Red), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Green), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Violet), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Thistle), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), GrapeCity.Win.Spread.InputMan.CellType.VerticalFlags.HeaderOnly)
FpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


Copyright © 2004 GrapeCity inc.