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


BackColor プロパティの初期設定。
ForeColor プロパティの初期設定。
Bold プロパティの初期設定。
UnderLine プロパティの初期設定。
背景色、文字色、太字、下線を指定してSubStyle クラスの新しいインスタンスを初期化します。
構文
'Declaration
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal bold As Boolean, _
   ByVal underLine As Boolean _
)
'使用法
 
Dim backColor As Color
Dim foreColor As Color
Dim bold As Boolean
Dim underLine As Boolean
 
Dim instance As New SubStyle(backColor, foreColor, bold, underLine)

パラメータ

backColor
BackColor プロパティの初期設定。
foreColor
ForeColor プロパティの初期設定。
bold
Bold プロパティの初期設定。
underLine
UnderLine プロパティの初期設定。
次のサンプルコードは、選択スタイルを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.SelectionStyle = new GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, true, false);
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday;
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.SelectionStyle = New GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, True, False)
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday
FpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
参照

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

 

 


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