The requested page is not available for the requested platform. You are viewing the content for Default platform.

CalculatedFieldCollection.Add(String, String, CalculatedFieldType) Method

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

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.1.Core.dll

Declaration

public CalculatedField Add(
    string expression,
    string name,
    CalculatedFieldType dataType
)
Public Function Add(
    expression As String,
    name As String,
    dataType As CalculatedFieldType
) As CalculatedField

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.

dataType CalculatedFieldType

A CalculatedFieldType enumeration member specifying the type of the value returned by the calculated field. Initializes the calculated field's CalculatedField.DataType property.

Returns

Type Description
CalculatedField

A CalculatedField object representing the newly created calculated field.

See Also