GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > SetFormula Method : SetFormula(Int32,Int32,String) Method |
'Declaration Public Overloads Sub SetFormula( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal formula As System.String _ )
'Usage Dim instance As Worksheet Dim row As System.Integer Dim column As System.Integer Dim formula As System.String instance.SetFormula(row, column, formula)
gcSpreadSheet1.Sheets[0].SetValue(0, 0, 1); gcSpreadSheet1.Sheets[0].SetValue(0, 1, 2); gcSpreadSheet1.Sheets[0].SetValue(1, 0, 10); gcSpreadSheet1.Sheets[0].Cells[1, 1].Formula = "sum(A1:C1)"; gcSpreadSheet1.Sheets[0].SetFormula(3, 1, "A1+A2");
gcSpreadSheet1.Sheets(0).SetValue(0, 0, 1) gcSpreadSheet1.Sheets(0).SetValue(0, 1, 2) gcSpreadSheet1.Sheets(0).SetValue(1, 0, 10) gcSpreadSheet1.Sheets(0).Cells(1, 1).Formula = "sum(A1:C1)" gcSpreadSheet1.Sheets(0).SetFormula(3, 1, "A1+A2")
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)