PowerTools SPREAD for Windows Forms 10.0J
MaximumChange プロパティ (IIterationSupport)


変化の最大数を取得または設定します。 この値に達すると繰り返しを停止します。
構文
'Declaration
 
Property MaximumChange As Double
'使用法
 
Dim instance As IIterationSupport
Dim value As Double
 
instance.MaximumChange = value
 
value = instance.MaximumChange
double MaximumChange {get; set;}

プロパティ値

変化の最大量
次のサンプルコードは、循環参照を繰り返し回数3回、変化量5で評価することを指定します。
FarPoint.Win.Spread.Model.IIterationSupport iis;
iis = (FarPoint.Win.Spread.Model.IIterationSupport)fpSpread1.ActiveSheet.Models.Data;
iis.Iteration = true;
iis.MaximumChange = 5;
iis.MaximumIterations = 3;
fpSpread1.ActiveSheet.SetValue(0, 0, 10);
fpSpread1.ActiveSheet.SetValue(0, 1, 20);
fpSpread1.ActiveSheet.SetValue(0, 2, 30);
fpSpread1.ActiveSheet.SetFormula(0, 2, "B1+C1");
fpSpread1.ActiveSheet.SetFormula(0, 0, "A1*C1");
Dim iis As FarPoint.Win.Spread.Model.IIterationSupport
iis = FpSpread1.ActiveSheet.Models.Data
iis.Iteration = True
iis.MaximumChange = 5
iis.MaximumIterations = 3
FpSpread1.ActiveSheet.SetValue(0, 0, 10)
FpSpread1.ActiveSheet.SetValue(0, 1, 20)
FpSpread1.ActiveSheet.SetValue(0, 2, 30)
FpSpread1.ActiveSheet.SetFormula(0, 2, "B1+C1")
FpSpread1.ActiveSheet.SetFormula(0, 0, "A1*C1")
参照

IIterationSupport インタフェース
IIterationSupport メンバ

 

 


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