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

境界線スタイルを取得または設定します。
構文
'宣言
 
Public Property BorderStyle As 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 メンバ

 

 


© MESCIUS inc. All rights reserved.