Skip to main content
A newer version of this page is available. .

CalculatedField.WrapExpressionToType(String, CalculatedFieldType) Method

Wraps the calculated field’s expression to the conversion function according to the specified CalculatedFieldType.

Namespace: DevExpress.DashboardCommon

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

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.WindowsDesktop.Dashboard.Core

Declaration

public static string WrapExpressionToType(
    string expression,
    CalculatedFieldType toType
)

Parameters

Name Type Description
expression String

A String that specifies the initial expression.

toType CalculatedFieldType

A CalculatedFieldType enumeration value used to wrap the calculated field’s expression to the required conversion function.

Returns

Type Description
String

A String that specifies the expression wrapped to the specified conversion function.

See Also