GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > SetFormula Method : SetFormula(Int32,Int32,Int32,Int32,String) Method |
'Declaration Public Overloads Sub SetFormula( _ ByVal row As System.Integer, _ ByVal column As System.Integer, _ ByVal rowCount As System.Integer, _ ByVal columnCount As System.Integer, _ ByVal formula As System.String _ )
'Usage Dim instance As Worksheet Dim row As System.Integer Dim column As System.Integer Dim rowCount As System.Integer Dim columnCount As System.Integer Dim formula As System.String instance.SetFormula(row, column, rowCount, columnCount, formula)
public void SetFormula( System.int row, System.int column, System.int rowCount, System.int columnCount, System.string formula )
gcSpreadSheet1.Sheets[0].SetFormula(0, 0, "D1+D2"); gcSpreadSheet1.Sheets[0].SetFormula(1, 1, 2, 2, "E1+E1"); listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetFormula(0, 0).ToString());
GcSpreadSheet1.Sheets(0).SetFormula(0, 0, "D1+D2") GcSpreadSheet1.Sheets(0).SetFormula(1, 1, 2, 2, "E1+E1") ListBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetFormula(0, 0).ToString())
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