Spread for ASP.NET 7.0 Product Documentation
MaximumIterations Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > IIterationSupport Interface : MaximumIterations Property


Glossary Item Box

Gets or sets the maximum number of iterations.

Syntax

Visual Basic (Declaration) 
Property MaximumIterations As Integer
Visual Basic (Usage)Copy Code
Dim instance As IIterationSupport
Dim value As Integer
 
instance.MaximumIterations = value
 
value = instance.MaximumIterations
C# 
int MaximumIterations {get; set;}

Property Value

Integer number of iterations

Remarks

This is the maximum number of iterations for calculating values that have a circular reference in the formula.

Example

C#Copy Code
FarPoint.Web.Spread.Model.IIterationSupport iis; 
iis = (FarPoint.Web.Spread.Model.IIterationSupport)FpSpread1.ActiveSheetView.DataModel; 
iis.Iteration = true; 
iis.MaximumChange = 5; 
iis.MaximumIterations = 3; 
FpSpread1.ActiveSheetView.SetValue(0, 0, 10); 
FpSpread1.ActiveSheetView.SetValue(0, 1, 20); 
FpSpread1.ActiveSheetView.SetValue(0, 2, 30); 
FpSpread1.ActiveSheetView.SetFormula(0, 2, "B1+C1"); 
FpSpread1.ActiveSheetView.SetFormula(0, 0, "A1*C1");
Visual BasicCopy Code
Dim iis As FarPoint.Web.Spread.Model.IIterationSupport
iis = FpSpread1.ActiveSheetView.DataModel
iis.Iteration = True
iis.MaximumChange = 5
iis.MaximumIterations = 3
FpSpread1.ActiveSheetView.SetValue(0, 0, 10)
FpSpread1.ActiveSheetView.SetValue(0, 1, 20)
FpSpread1.ActiveSheetView.SetValue(0, 2, 30)
FpSpread1.ActiveSheetView.SetFormula(0, 2, "B1+C1")
FpSpread1.ActiveSheetView.SetFormula(0, 0, "A1*C1")

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.