New to Telerik Document ProcessingStart a free 30-day trial

Encapsulates the context for function evaluation, including arguments, worksheet reference, and cell position where the function is invoked.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions.Functions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Type Parameters:

T

Type of the arguments.

Syntax:

C#
public class FunctionEvaluationContext<T>

Inheritance: objectFunctionEvaluationContext<T>

Constructors

Initializes a new FunctionEvaluationContext<T> with the specified arguments, worksheet reference, and cell coordinates for function evaluation.

C#
public FunctionEvaluationContext(T[] arguments, Worksheet worksheet, int rowIndex, int columnIndex, FunctionExpression functionExpression = null)
Parameters:argumentsT[]

The arguments.

worksheetWorksheet

The worksheet.

rowIndexint

Index of the row.

columnIndexint

Index of the column.

functionExpressionFunctionExpression

The expression that is being evaluated.

Properties

Provides the array of arguments passed to the function for evaluation.

C#
public T[] Arguments { get; }
Property Value:

The arguments.

Returns the zero-based column index of the cell containing the function.

C#
public int ColumnIndex { get; }
Property Value:

The index of the column.

Returns the zero-based row index of the cell containing the function.

C#
public int RowIndex { get; }
Property Value:

The index of the row.

Returns the worksheet containing the cell where the function is being evaluated.

C#
public Worksheet Worksheet { get; }
Property Value:

The worksheet.