Skip to main content

CardItemDeltaFormatRule Class

A format rule that is calculated by delta and used to apply conditional formatting to the Card dashboard item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v22.1.Core.dll


public class CardItemDeltaFormatRule :


If you have multiple cards in the Cards section, the delta format rule applies only to the card by whose values you calculate the format rule. When you use hidden measures or series dimensions to calculate a format rule (CardItemFormatRule), the rule applies to all cards.

Create the CardItemDeltaFormatRule object and specify its settings to add a delta format rule:

The following code snippet illustrates the delta rule that is calculated by the delta’s absolute variation value.

using System.Windows.Forms;
using DevExpress.DashboardCommon;

CardDashboardItem card = (CardDashboardItem)dashboardDesigner1.Dashboard.Items["cardDashboardItem1"];

CardItemDeltaFormatRule rule = new CardItemDeltaFormatRule();
rule.DeltaValueType = DeltaValueType.AbsoluteVariation;
rule.Card = card.Cards[0];
var condition = new FormatConditionRangeGradient(FormatConditionRangeGradientPredefinedType.BlueGreen);
rule.Condition = condition;

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CardItemDeltaFormatRule class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.


See Also