Spread WPF Documentation
Parse Method (CalcParser)


GrapeCity.CalcEngine Namespace > CalcParser Class : Parse Method
A string formula.
A CalcParserContext indicates the setting for parser.
Parse a string formula to GrapeCity.CalcEngine.Expressions.CalcExpression with specified CalcParserContext.
Syntax
'Declaration
 
Public Function Parse( _
   ByVal text As System.String, _
   ByVal context As CalcParserContext _
) As CalcExpression
'Usage
 
Dim instance As CalcParser
Dim text As System.String
Dim context As CalcParserContext
Dim value As CalcExpression
 
value = instance.Parse(text, context)
public CalcExpression Parse( 
   System.string text,
   CalcParserContext context
)

Parameters

text
A string formula.
context
A CalcParserContext indicates the setting for parser.

Return Value

A GrapeCity.CalcEngine.Expressions.CalcExpression indicate the expression tree. If text is System.String.Empty or a null reference (Nothing in Visual Basic), return a null reference (Nothing in Visual Basic).
Exceptions
ExceptionDescription
There are some errors in string formula.
See Also

Reference

CalcParser Class
CalcParser Members