GrapeCity.Windows.SpreadSheet.Data Namespace > Cell Class : Formula Property |
'Declaration <System.ComponentModel.DefaultValueAttribute()> Public Property Formula As System.String
'Usage Dim instance As Cell Dim value As System.String instance.Formula = value value = instance.Formula
[System.ComponentModel.DefaultValue()] public System.string Formula {get; set;}
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, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6