Back to Devexpress

FormatCondition Enum

windowsforms-devexpress-dot-xtraeditors-d71f1c6b.md

latest4.2 KB
Original Source

FormatCondition Enum

Enumerates the comparison operators (Equal, Between, Less, etc.).

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[ResourceFinder(typeof(ResFinder), "PropertyNamesRes")]
public enum FormatCondition
vb
<ResourceFinder(GetType(ResFinder), "PropertyNamesRes")>
Public Enum FormatCondition

Members

NameDescription
None

The format is applied to all cells in the target column.

| | Equal |

The format is applied to cells (or corresponding rows) whose values match the FormatConditionRuleValue.Value1 property value.

| | NotEqual |

The format is applied to cells (or corresponding rows) whose values do not match the FormatConditionRuleValue.Value1 property value.

| | Between |

The format is applied to cells (or rows) whose values are between the Value1 and Value2 property values inclusive. Disable the BetweenConditionsIncludeEndpoints option to make the Between condition exclusive.

| | NotBetween |

The format is applied to cells (or rows) whose values are not between the Value1 and Value2 property values inclusive. Disable the BetweenConditionsIncludeEndpoints option to make the NotBetween condition exclusive.

| | Less |

The format is applied to cells (or corresponding rows) whose values are less than the FormatConditionRuleValue.Value1 property value.

| | Greater |

The format is applied to cells (or corresponding rows) whose values are greater than the FormatConditionRuleValue.Value1 property value.

| | GreaterOrEqual |

The format is applied to cells (or corresponding rows) whose values are greater or equal to the FormatConditionRuleValue.Value1 property value.

| | LessOrEqual |

The format is applied to cells (or corresponding rows) whose values are less or equal to the FormatConditionRuleValue.Value1 property value.

| | Expression |

The format is applied to cells (or corresponding rows) if the FormatConditionRuleValue.Expression evaluates to true.

|

The following properties accept/return FormatCondition values:

Remarks

See the Appearance and Conditional Formatting topic to learn about the conditional formatting feature, which allows you to change the appearance of individual cells or rows based on specific conditions.

See Also

Condition

Appearance and Conditional Formatting

DevExpress.XtraEditors Namespace