Back to Devexpress

FormatConditionRuleValue.Expression Property

windowsforms-devexpress-dot-xtraeditors-dot-formatconditionrulevalue.md

latest3.2 KB
Original Source

FormatConditionRuleValue.Expression Property

Gets or sets a Boolean expression to which target cells should match.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public string Expression { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue("")>
<XtraSerializableProperty>
Public Property Expression As String

Property Value

TypeDefaultDescription
StringString.Empty

A string that specifies the Boolean expression.

|

Remarks

The Expression property is in effect if the FormatConditionRuleValue.Condition property is set to FormatConditionEnum.Expression. When the expression evaluates to true , the FormatConditionRuleValue format is applied.

See the Expression Editor Customization and Criteria Language Syntax documents to learn more about the syntax of expressions.

To make it easy to create expressions, the Expression Editor can be used.

Note

  • Some functions used in expression-based Excel Style Format Rules and expression-based unbound columns can only be exported to XLS(X) format in data-aware export mode. Refer to the Criteria Language Syntax document for details on which functions can be exported to XLS(X) format.

See Also

FormatConditionRuleExpression

Condition

Expression Editor Customization

Criteria Language Syntax

Expression Editor

FormatConditionRuleValue Class

FormatConditionRuleValue Members

DevExpress.XtraEditors Namespace