Spread for ASP.NET 9.0 Product Documentation
UnparseFormula Method (IExpressionSupport2)
Example 


Row index of the cell
Column index of the cell
Expression to be unparsed
Gets the formula, as a string value, for the specified expression for the cell at the specified row and column.
Syntax
'Declaration
 
Function UnparseFormula( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal expression As Expression _
) As String
'Usage
 
Dim instance As IExpressionSupport2
Dim row As Integer
Dim column As Integer
Dim expression As Expression
Dim value As String
 
value = instance.UnparseFormula(row, column, expression)
string UnparseFormula( 
   int row,
   int column,
   Expression expression
)

Parameters

row
Row index of the cell
column
Column index of the cell
expression
Expression to be unparsed

Return Value

String containing the formula
Example
This example unparses a formula.
FarPoint.Web.Spread.Model.IExpressionSupport2 es;
es = FpSpread1.ActiveSheetView.DataModel;
FarPoint.CalcEngine.Expression ex;
string s;
FpSpread1.ActiveSheetView.Cells[0, 0].Value = 10; 
FpSpread1.ActiveSheetView.Cells[1, 0].Value = 10; 
FpSpread1.ActiveSheetView.Cells[2, 0].Formula = "A1 + A2"; 
ex = es.ParseFormula(2, 0, "A1+A2"); 
s = es.UnparseFormula(2, 0, ex); 
Response.Write(s);  
Dim es As FarPoint.Web.Spread.Model.IExpressionSupport2
es = FpSpread1.ActiveSheetView.DataModel
Dim ex As FarPoint.CalcEngine.Expression
Dim s As String
FpSpread1.ActiveSheetView.Cells(0, 0).Value = 10 
FpSpread1.ActiveSheetView.Cells(1, 0).Value = 10 
FpSpread1.ActiveSheetView.Cells(2, 0).Formula = "A1 + A2" 
ex = es.ParseFormula(2, 0, "A1+A2") 
s = es.UnparseFormula(2, 0, ex)
Response.Write(s) 
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

IExpressionSupport2 Interface
IExpressionSupport2 Members

 

 


Copyright © GrapeCity, inc. All rights reserved.