Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FormatConditionRuleContains Class

Applies a format if a value matches one of the specified values.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class FormatConditionRuleContains :
    FormatConditionRuleAppearanceBase,
    IXtraSerializable,
    IFormatConditionRuleContains,
    IFormatConditionRuleBase

#Remarks

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.

FormatContainsCityGreenBoldFill FormatContainsCountryItaly

See the following topics to learn more:

See Also