Back to Devexpress

IExpression.Visit(IExpressionVisitor) Method

officefileapi-devexpress-dot-spreadsheet-dot-formulas-dot-iexpression-dot-visit-x28-devexpress-dot-spreadsheet-dot-formulas-dot-iexpressionvisitor-x29.md

latest2.5 KB
Original Source

IExpression.Visit(IExpressionVisitor) Method

Calls the visitor delegate on the expression.

Namespace : DevExpress.Spreadsheet.Formulas

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Visit(
    IExpressionVisitor visitor
)
vb
Sub Visit(
    visitor As IExpressionVisitor
)

Parameters

NameTypeDescription
visitorDevExpress.Spreadsheet.Formulas.IExpressionVisitor

A DevExpress.Spreadsheet.Formulas.IExpressionVisitor object that is the expression visitor.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visit(IExpressionVisitor) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-use-formula-engine/CS/FormulaEngineTest/Form1.cs#L90

csharp
MyVisitor visitor = new MyVisitor();
p_expr.Expression.Visit(visitor);
// Reconsitute the formula.

winforms-spreadsheet-use-formula-engine/VB/FormulaEngineTest/Form1.vb#L83

vb
Dim visitor As New MyVisitor()
p_expr.Expression.Visit(visitor)
' Reconsitute the formula.

See Also

IExpression Interface

IExpression Members

DevExpress.Spreadsheet.Formulas Namespace