Spread Windows Forms 7.0 Product Documentation
MaximumIterations Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.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 times to recalculate circular references

Example

This example specifies that circular references are evaluated with the number of iterations being three and the amount of change being 5.
C#Copy Code
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");
Visual BasicCopy Code
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")

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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