GrapeCity SPREAD for Windows Forms 11.0J
SubStyle コンストラクタ(Color,Color)


BackColor プロパティの初期設定。
ForeColor プロパティの初期設定。
指定した初期化プロパティを使用して、SubStyleクラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color _
)
'使用法
 
Dim backColor As Color
Dim foreColor As Color
 
Dim instance As New SubStyle(backColor, foreColor)
public SubStyle( 
   Color backColor,
   Color foreColor
)

パラメータ

backColor
BackColor プロパティの初期設定。
foreColor
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 メンバ
オーバーロード一覧

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.