Spread Windows Forms 9.0 Product Documentation
MaximumIterations Property (SheetView)
Example 


Gets or sets the maximum number of iterations for calculating circular references on this sheet.
Syntax
'Declaration
 
Public Property MaximumIterations As Integer
'Usage
 
Dim instance As SheetView
Dim value As Integer
 
instance.MaximumIterations = value
 
value = instance.MaximumIterations
public int MaximumIterations {get; set;}

Property Value

Integer number of times to recalculate circular references
Example
This example sets the maximum amount of change below which iterations stop when circular references are evaluated.
fpSpread1.ActiveSheet.Iteration = true;
fpSpread1.ActiveSheet.SetValue(0, 1, 20);
fpSpread1.ActiveSheet.MaximumChange = 5;
fpSpread1.ActiveSheet.MaximumIterations = 5;
fpSpread1.ActiveSheet.SetFormula(0, 2, "A1*3");
fpSpread1.ActiveSheet.SetFormula(0, 0, "B1+C1");
FpSpread1.ActiveSheet.Iteration = True
FpSpread1.ActiveSheet.SetValue(0, 1, 20)
FpSpread1.ActiveSheet.MaximumChange = 5
FpSpread1.ActiveSheet.MaximumIterations = 5
FpSpread1.ActiveSheet.SetFormula(0, 0, "B1+C1")
FpSpread1.ActiveSheet.SetFormula(0, 2, "A1*3")
Requirements

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

See Also

Reference

SheetView Class
SheetView Members
MaximumChange Property
Iteration Property

User-Task Documentation

Managing Formulas in Cells

 

 


Copyright © GrapeCity, inc. All rights reserved.