Gets the formula of the specified cell on this sheet.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As String
value = instance.GetFormula(row, column) |
Parameters
- row
- Row index of the cell
- column
- Column index of the cell
Return Value
String with formula in the cell
Exceptions
Remarks
Example
This example illustrates the use of this member by returning the formula for the specified cell.
C# | Copy Code |
---|
fpSpread1.ActiveSheet.Cells[0, 0, 1, 1].Value = 20;
fpSpread1.ActiveSheet.SetFormula(2, 0, "Sum(A1,B1)");
object o;
o = fpSpread1.ActiveSheet.GetFormula(2, 0);
listBox1.Items.Add(o.ToString()); |
Visual Basic | Copy Code |
---|
FpSpread1.ActiveSheet.Cells(0, 0, 1, 1).Value = 20
FpSpread1.ActiveSheet.SetFormula(2, 0, "Sum(A1,B1)")
Dim o As Object
o = FpSpread1.ActiveSheet.GetFormula(2, 0)
ListBox1.Items.Add(o.ToString()) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also