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

前景色の初期設定。
前景色の初期設定。
前景色の初期設定。
前景色の初期設定。
背景色、文字色、太字、下線を指定してSubStyle クラスの新しいインスタンスを初期化します。
構文
'宣言
 
Public Function New( _
   ByVal backColor As Color, _
   ByVal foreColor As Color, _
   ByVal bold As Boolean, _
   ByVal underLine As Boolean _
)

パラメータ

backColor
前景色の初期設定。
foreColor
前景色の初期設定。
bold
前景色の初期設定。
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 メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.