PowerTools SPREAD for Windows Forms 8.0J
AutoCalculation プロパティ (DefaultSheetDataModel)


依存セルの内容が変更されたときにシートの各数式を自動的に再計算するかどうかを取得または設定します。
構文
'Declaration
 
Public Property AutoCalculation As Boolean
'使用法
 
Dim instance As DefaultSheetDataModel
Dim value As Boolean
 
instance.AutoCalculation = value
 
value = instance.AutoCalculation
public bool AutoCalculation {get; set;}

プロパティ値

Boolean:数式を自動的に再計算する場合は True、それ以外の場合は False
Dim dataModel As New FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5)
Dim dlg As DialogResult
FpSpread1.ActiveSheet.Models.Data = dataModel
dataModel.SetValue(0, 0, 10)
dataModel.SetValue(1, 0, 20)
dataModel.SetFormula(1, 1, "3*SUM(A1, A2)")
dlg = MessageBox.Show("Do you want to AutoCalculate the formula??", "AutoCalculation", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
dataModel.SetValue(1, 0, 80)
dataModel.AutoCalculation = True
End If
FarPoint.Win.Spread.Model.DefaultSheetDataModel dataModel = new FarPoint.Win.Spread.Model.DefaultSheetDataModel(5, 5);
DialogResult dlg;
fpSpread1.ActiveSheet.Models.Data = dataModel;
dataModel.SetValue(0, 0, 10);
dataModel.SetValue(1, 0, 20);
dataModel.SetFormula(1, 1, "3*SUM(A1, A2)");
dlg = MessageBox.Show("Do you want to AutoCalculate the formula??", "AutoCalculation", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
dataModel.SetValue(1, 0, 80);
dataModel.AutoCalculation = true;
}
参照

DefaultSheetDataModel クラス
DefaultSheetDataModel メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.