Back to Devexpress

CardItemDeltaFormatRule Class

dashboard-devexpress-dot-dashboardcommon-e3bffc8e.md

latest3.9 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public class CardItemDeltaFormatRule :
    CardItemFormatRuleBase,
    IDeltaFormatRule
vb
Public Class CardItemDeltaFormatRule
    Inherits CardItemFormatRuleBase
    Implements IDeltaFormatRule

Remarks

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.

csharp
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;
card.FormatRules.Add(rule);

Inheritance

Object DashboardItemFormatRule CardItemFormatRuleBase CardItemDeltaFormatRule

See Also

CardItemDeltaFormatRule Members

DevExpress.DashboardCommon Namespace