MESCIUS SPREAD for Windows Forms 15.0J
SingleBorderColor プロパティ (DropDownCalendar)
使用例 

一重境界線の色を取得または設定します。
構文
'宣言
 
Public Property SingleBorderColor As Color
public Color SingleBorderColor {get; set;}

プロパティ値

デフォルト値はSystem.Drawing.SystemColors.WindowFrameです。
例外
例外解説
System.ArgumentExceptionメソッドに渡された引数のいずれかが無効な場合にスローされる例外。
解説
SingleBorderColor プロパティは、 BorderStyle プロパティが FixedSingleのときにのみ機能します。
使用例
次のサンプルコードは、SingleBorderColorプロパティを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.BorderStyle = BorderStyle.FixedSingle;
gcDateTimeCell1.DropDownCalendar.SingleBorderColor = Color.DarkViolet;
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.BorderStyle = BorderStyle.FixedSingle
gcDateTimeCell1.DropDownCalendar.SingleBorderColor = Color.DarkViolet
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
参照

DropDownCalendar クラス
DropDownCalendar メンバ

 

 


© MESCIUS inc. All rights reserved.