MESCIUS SPREAD for Windows Forms 15.0J
SubStyle コンストラクタ(Color,Color)
使用例 

前景色の初期設定。
前景色の初期設定。
名前、休日のコレクション および休日の書式を設定してSubStyle
構文
'宣言
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color _
)
public SubStyle( 
   Color backColor,
   Color foreColor
)

パラメータ

backColor
前景色の初期設定。
foreColor
前景色の初期設定。
使用例
次のサンプルコードは、隣接日スタイルを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.TrailingStyle = new GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.LightSalmon, Color.Navy);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.TrailingStyle = New GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.LightSalmon, Color.Navy)
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
参照

SubStyle クラス
SubStyle メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.