// C# FpSpread1.ActiveSheet.Cells[4, 0].Formula = "SUM(A1:A4)"; ' VB FpSpread1.ActiveSheet.Cells(4, 0).Formula = "SUM(A1:A4)"
// Set the reference style fpSpread1.Sheets[0].ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; ' Set the reference style FpSpread1.Sheets(0).ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1
// Set circular reference 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"); ' Set circular reference 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")
// C# fpSpread1.Sheets[0].Cells[3, 1].Formula = "PRODUCT(A1, SUM(A2,A3))"; ' VB FpSpread1.Sheets(0).Cells(3, 1).Formula = "PRODUCT(A1, SUM(A2,A3))"
// Allow users to enter formulas fpSpread1.AllowUserFormulas = true; ' Allow users to enter formulas FpSpread1.AllowUserFormulas = True
// Add custom name 'test' FpSpread1.Sheets[0].AddCustomName("test", "$B$1", 0, 0); ' Add custom name 'test' FpSpread1.Sheets(0).AddCustomName("test", "$B$1", 0, 0)