FormatConditionRuleAboveBelowAverage Class
Applies a format if a cell value is above or below the column’s average.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
public class FormatConditionRuleAboveBelowAverage :
FormatConditionRuleAppearanceBase,
IFormatConditionRuleAboveBelowAverage,
IFormatConditionRuleBase
Remarks
The FormatConditionRuleAboveBelowAverage object allows you to find cell values that are above or below the column’s average.
The FormatConditionRuleAboveBelowAverage.AverageType property specifies a condition (Above, Below, EqualOrAbove, EqualOrBelow).
You can use the FormatConditionRuleAppearanceBase.PredefinedName property to apply one of the predefined style formats (Italic Text, Red Bold Text, Green Fill, Yellow Text with Yellow Fill, etc.), or use the FormatConditionRuleAppearanceBase.Appearance property to provide a custom appearance.
The images below demonstrate examples of applying a FormatConditionRuleAboveBelowAverage
format.
See the following documents to learn more.
- GridControl: Conditional Formatting.
- PivotGridControl: Conditional Formatting.
- TreeList: Conditional Formatting.