GrapeCity SPREAD for Windows Forms 12.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 _
)

パラメータ

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 メンバ
オーバーロード一覧

 

 


Copyright © 2004 GrapeCity inc.