Skip to main content

CalculatedFieldCollection.Add(String, String) Method

Adds a new calculated field with the specified expression and name to the CalculatedFieldCollection collection.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.2.Core.dll

NuGet Package: DevExpress.Dashboard.Core

Declaration

public CalculatedField Add(
    string expression,
    string name
)

Parameters

Name Type Description
expression String

A String that specifies the expression of the calculated field. Initializes the calculated field’s CalculatedField.Expression property.

name String

A String that specifies the name of the calculated field. Initializes the calculated field’s CalculatedField.Name property.

Returns

Type Description
CalculatedField

A CalculatedField object representing the newly created calculated field.

See Also