windowsforms-devexpress-dot-xtraeditors-f40dda6c.md
Applies a format if a value matches one of the specified values.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public class FormatConditionRuleContains :
FormatConditionRuleAppearanceBase,
IConditionalFilterItemProvider,
IXtraSerializable,
IFormatConditionRuleContains,
IFormatConditionRuleBase
Public Class FormatConditionRuleContains
Inherits FormatConditionRuleAppearanceBase
Implements IConditionalFilterItemProvider,
IXtraSerializable,
IFormatConditionRuleContains,
IFormatConditionRuleBase
A FormatConditionRuleContains format compares a cell value against the values specified by the FormatConditionRuleContains.Values list.
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 specify a custom appearance.
The images below demonstrate examples of applying a FormatConditionRuleContains format.
See the following topics to learn more:
Object FormatConditionRuleBase FormatConditionRuleAppearanceBase FormatConditionRuleContains
See Also
FormatConditionRuleContains Members