FormatConditionRuleContains Class

Applies a format if a value matches one of constants.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public class FormatConditionRuleContains :
    FormatConditionRuleAppearanceBase,
    IXtraSerializable,
    IFormatConditionRuleContains,
    IFormatConditionRuleBase
Public Class FormatConditionRuleContains
    Inherits FormatConditionRuleAppearanceBase
    Implements IXtraSerializable,
               IFormatConditionRuleContains,
               IFormatConditionRuleBase

Remarks

A FormatConditionRuleContains format compares a cell value against constants 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 provide a custom appearance.

The images below demonstrate examples of applying a FormatConditionRuleContains format.

FormatContainsCityGreenBoldFill FormatContainsCountryItaly

See the following documents to learn more.

See Also