Skip to main content
.NET Framework 4.6.2+

IModelMember.Expression Property

Specifies an expression used to calculate the custom field value.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[ModelBrowsable(typeof(ModelMemberVisibilityCalculator))]
[Required(typeof(ModelMemberRequiredCalculator))]
string Expression { get; set; }

Property Value

Type Description
String

A string that is an expression used to calculate the field value.

Remarks

The Expression property is visible in the Model Editor for custom calculated fields only.

To define a calculated field, set the IModelMember.IsCalculated property to true and pass the expression used to compute this field value to the Expression property. Click the ellipsis button located to the right of the property value to invoke the Expression Editor dialog. In this editor, you can select functions, operators and operands using the editor controls.

See Also