GrapeCity SPREAD for Windows Forms 11.0J
BorderStyle プロパティ (PopUpCalculatorInfo)


コントロールの境界線の種類を取得または設定します。
構文
'Declaration
 
Public Property BorderStyle As BorderStyle
'使用法
 
Dim instance As PopUpCalculatorInfo
Dim value As BorderStyle
 
instance.BorderStyle = value
 
value = instance.BorderStyle
public BorderStyle BorderStyle {get; set;}

プロパティ値

境界線スタイルを示すBorderStyle値。
デフォルト値はSystem.Windows.Forms.BorderStyle.FixedSingleです。
解説
ポップアップ電卓を表示するには、セルが編集モードのときに[Ctrl]キーを押しながら数字パッドの[+]、[-]、[*]、[/]のいずれかのキーを押します。
次のサンプルコードは、ポップアップ電卓のプロパティを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType ncell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType();
ncell1.DropDownCalculator.FlatStyle = FlatStyle.Popup;
ncell1.DropDownCalculator.Font = new System.Drawing.Font("Comic Sans MS", 10);
ncell1.PopUpCalculator.BorderStyle = BorderStyle.Fixed3D;
ncell1.PopUpCalculator.BackColor = Color.Yellow;
ncell1.PopUpCalculator.Font = new System.Drawing.Font("Arial", 8);
fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
fpSpread1.ActiveSheet.Cells[1, 1].Value = 12.3189;
Dim ncell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcNumberCellType()
ncell1.DropDownCalculator.FlatStyle = FlatStyle.Popup
ncell1.DropDownCalculator.Font = New System.Drawing.Font("Comic Sans MS", 10)
ncell1.PopUpCalculator.BorderStyle = BorderStyle.Fixed3D
ncell1.PopUpCalculator.BackColor = Color.Yellow
ncell1.PopUpCalculator.Font = New System.Drawing.Font("Arial", 8)
FpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
FpSpread1.ActiveSheet.Cells(1, 1).Value = 12.3189
参照

PopUpCalculatorInfo クラス
PopUpCalculatorInfo メンバ

 

 


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