MESCIUS SPREAD for Windows Forms 15.0J
ItemStyle プロパティ (DropDownCalendar)
使用例 

各項目のスタイルを取得または設定します。
構文
'宣言
 
Public Property ItemStyle As Style
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 メンバ

 

 


© MESCIUS inc. All rights reserved.