FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : GetFormula Method |
'Declaration Public Overridable Function GetFormula( _ ByVal row As Integer, _ ByVal column As Integer _ ) As String
For a list of the operators and functions you can use in formulas, refer to the Spread for .NET Formula Reference.
The Spread component can use absolute or relative cell references. You define the cell reference style for the spreadsheet by using the ReferenceStyle property. The formula cannot contain both absolute and relative row or column references.
FarPoint.Web.Spread.SheetView sv; string s; sv = FpSpread1.ActiveSheetView; sv.SetFormula(0, 0, "4*4"); s = sv.GetFormula(0, 0); Response.Write("The formula for the cell is a " + s);
Dim sv As FarPoint.Web.Spread.SheetView Dim s As String sv = FpSpread1.ActiveSheetView sv.SetFormula(0, 0, "4*4") s = sv.GetFormula(0, 0) Response.Write("The formula for the cell is a " & s)
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional
SheetView Class
SheetView Members
SetFormula Method
Formula Property (Cell)