GrapeCity SPREAD for Windows Forms 11.0J
MathButtons プロパティ


演算ボタンのボタンスタイルを取得または設定します。
構文
'Declaration
 
Public Property MathButtons As CalculatorButtonStyleInfo
'使用法
 
Dim instance As DropDownCalculatorInfo
Dim value As CalculatorButtonStyleInfo
 
instance.MathButtons = value
 
value = instance.MathButtons
public CalculatorButtonStyleInfo MathButtons {get; set;}

プロパティ値

演算に関連するボタンの描画に使用されるCalculatorButtonStyleInfoオブジェクト。
解説
ドロップダウン電卓のボタンの背景色を表示するには、FlatStyleプロパティをFlatまたはPopupに設定する必要があります。
次のサンプルコードは、ドロップダウン電卓の色を設定します。
GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyleInfo cbs = new GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyleInfo();
cbs.BackColor = Color.Yellow;
cbs.ForeColor = Color.Magenta;
cbs.TextEffect = GrapeCity.Win.Spread.InputMan.CellType.TextEffect.Inset;

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.DropDownCalculator.MathButtons = cbs;
ncell1.DropDownCalculator.MemoryButtons = cbs;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = ncell1;
fpSpread1.ActiveSheet.Cells[1, 1].Value = 12.31;
Dim cbs As New GrapeCity.Win.Spread.InputMan.CellType.CalculatorButtonStyleInfo()
cbs.BackColor = Color.Yellow
cbs.ForeColor = Color.Magenta
cbs.TextEffect = GrapeCity.Win.Spread.InputMan.CellType.TextEffect.Inset

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.DropDownCalculator.MathButtons = cbs
ncell1.DropDownCalculator.MemoryButtons = cbs
FpSpread1.ActiveSheet.Cells(1, 1).CellType = ncell1
FpSpread1.ActiveSheet.Cells(1, 1).Value = 12.31
参照

DropDownCalculatorInfo クラス
DropDownCalculatorInfo メンバ

 

 


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