PowerTools SPREAD for Windows Forms 10.0J
Lines プロパティ (DropDownCalendar)


線の設定を取得または設定します。
構文
'Declaration
 
Public Property Lines As Grid
'使用法
 
Dim instance As DropDownCalendar
Dim value As Grid
 
instance.Lines = value
 
value = instance.Lines
public Grid Lines {get; set;}

プロパティ値

線を示す Grid オブジェクト。
解説
このプロパティは、DropDownCalendar に表示される線の色とスタイルを決定します。
次のサンプルコードは、カレンダーの周囲に線に追加します。
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 メンバ

 

 


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