PowerTools SPREAD for ASP.NET 8.0J
RecalculateAll メソッド (SheetView)

シートのすべての数式を評価します(最後の計算サイクル以降に 変更されていない数式を含む)。
構文
'Declaration
 
Public Sub RecalculateAll() 
public void RecalculateAll()
この例では、シート内の最後の計算サイクル以降のすべての数式を評価します。
private void PageLoad(object sender, System.EventArgs e)
{
FarPoint.Web.Spread.SheetView sv;
      sv = FpSpread1.ActiveSheetView;
      sv.Cells[0, 0, 2, 3].CellType = New FarPoint.Web.Spread.IntegerCellType();
      sv.SetValue(0, 0, 20)
      sv.SetValue(1, 0, 10)
      sv.SetFormula(2, 0, "Sum(A1,A2)");
      sv.AutoCalculation = false;
}

private void Button1Click(object sender, System.EventArgs e)
{
      FarPoint.Web.Spread.SheetView sv;
      sv = FpSpread1.ActiveSheetView;
      sv.Cells[1, 0].Value = 100;
      sv.RecalculateAll();
}
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      Dim sv As FarPoint.Web.Spread.SheetView
      sv = FpSpread1.ActiveSheetView
      sv.Cells(0, 0, 2, 3).CellType = New FarPoint.Web.Spread.IntegerCellType
      sv.SetValue(0, 0, 20)
      sv.SetValue(1, 0, 10)
      sv.SetFormula(2, 0, "Sum(A1,A2)")
      sv.AutoCalculation = False
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Dim sv As FarPoint.Web.Spread.SheetView
      sv = FpSpread1.ActiveSheetView
      sv.Cells(1, 0).Value = 100
      sv.RecalculateAll()
End Sub
参照

SheetView クラス
SheetView メンバ
Recalculate メソッド

開発者の手引き

自動再計算

 

 


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