FarPoint.Win.Spread.Column col, col1, col2;
col = fpSpread1.ActiveSheet.Columns[0];
col.CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
col1 = fpSpread1.ActiveSheet.Columns[2];
col2 = fpSpread1.ActiveSheet.Columns[3];
fpSpread1.ActiveSheet.Cells[2, 3].Value = 10;
fpSpread1.ActiveSheet.Cells[2, 2].Value = 10;
col.Formula = "SUM(" + col1.ToString(FarPoint.Win.Spread.Model.ReferenceStyle.A1) + "," + col2.ToString(FarPoint.Win.Spread.Model.ReferenceStyle.A1)
+ ")";
Dim col, col1, col2 As FarPoint.Win.Spread.Column
col = fpSpread1.ActiveSheet.Columns(0)
col.CellType = New FarPoint.Win.Spread.CellType.NumberCellType()
col1 = fpSpread1.ActiveSheet.Columns(2)
col2 = fpSpread1.ActiveSheet.Columns(3)
fpSpread1.ActiveSheet.Cells(2, 3).Value = 10
fpSpread1.ActiveSheet.Cells(2, 2).Value = 10
col.Formula = "SUM(" + col1.ToString(FarPoint.Win.Spread.Model.ReferenceStyle.A1) + "," + col2.ToString(FarPoint.Win.Spread.Model.ReferenceStyle.A1)
+ ")"