Back to Devexpress

FormatConditionRuleAboveBelowAverage Class

windowsforms-devexpress-dot-xtraeditors-2eba31c0.md

latest3.5 KB
Original Source

FormatConditionRuleAboveBelowAverage Class

Applies a format if a cell value is above or below the column’s average.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public class FormatConditionRuleAboveBelowAverage :
    FormatConditionRuleAppearanceBase,
    IConditionalFilterItemProvider,
    IFormatConditionRuleAboveBelowAverage,
    IFormatConditionRuleBase
vb
Public Class FormatConditionRuleAboveBelowAverage
    Inherits FormatConditionRuleAppearanceBase
    Implements IConditionalFilterItemProvider,
               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.

Inheritance

Object FormatConditionRuleBase FormatConditionRuleAppearanceBase FormatConditionRuleAboveBelowAverage

See Also

FormatConditionRuleAboveBelowAverage Members

Appearance and Conditional Formatting

Conditional Formatting

Conditional Formatting

DevExpress.XtraEditors Namespace