FormatConditionEnum Enum
Lists values specifying comparison operators used when applying conditional styles.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraEditors.v17.2.dll
Declaration
[ResourceFinder(typeof(ResFinder), "PropertyNamesRes")]
[TypeConverter(typeof(EnumTypeConverter))]
public enum FormatConditionEnum
Members
Name | Description |
---|---|
None | The style is not applied to any cell. |
Equal | The style is applied to cells (or corresponding rows) whose values match the StyleFormatConditionBase.Value1 property value. |
NotEqual | The style is applied to cells (or corresponding rows) whose values do not match the StyleFormatConditionBase.Value1 property value. |
Between | The style is applied to cells (or corresponding rows) whose values fall into the range specified by the StyleFormatConditionBase.Value1 and StyleFormatConditionBase.Value2 properties. |
NotBetween | The style is applied to cells (or corresponding rows) whose values fall outside of the range specified by the StyleFormatConditionBase.Value1 and StyleFormatConditionBase.Value2 properties. |
Less | The style is applied to cells (or corresponding rows) whose values are less than that specified by the StyleFormatConditionBase.Value1 property. |
Greater | The style is applied to cells (or corresponding rows) whose values are greater than that specified by the StyleFormatConditionBase.Value1 property. |
GreaterOrEqual | The style is applied to cells (or corresponding rows) whose values are greater or equal to the StyleFormatConditionBase.Value1 property value. |
LessOrEqual | The style is applied to cells (or corresponding rows) whose values are less or equal to the StyleFormatConditionBase.Value1 property value. |
Expression | The style is applied to cells (or corresponding rows) if the StyleFormatConditionBase.Expression evaluates to true. |
Related API Members
The following properties accept/return FormatConditionEnum values:
Remarks
StyleFormatCondition objects provide StyleFormatCondition.Column and StyleFormatConditionBase.Appearance properties specifying the column whose values take part in conditional formatting and the style applied to cells (or corresponding rows) that meet the specified condition. The condition is set using the StyleFormatConditionBase.Condition property that accepts values listed by the FormatConditionEnum enumeration. These values specify how cell values should be compared to the StyleFormatConditionBase.Value1 and StyleFormatConditionBase.Value2 properties of the style condition object.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FormatConditionEnum enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.