Tab

CardViewFormatConditionTopBottom.ApplyToCard Property

Gets or sets whether the appearance settings can be applied to cards.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

[DefaultValue(false)]
public bool ApplyToCard { get; set; }

Property Value

Type Default Description
Boolean

false

true, to apply the appearance settings to cards; otherwise, false.

Remarks

The ApplyToCard property specifies whether the appearance settings specified by the CardViewFormatConditionTopBottom.CardStyle property are applied to cards whose values match the criteria specified.

Example

{
...
    CardViewFormatConditionTopBottom Format3 = new CardViewFormatConditionTopBottom();
    Format3.FieldName = "UnitPrice";
    Format3.Format = GridConditionHighlightFormat.Custom;
    Format3.CardStyle.Border.BorderStyle = BorderStyle.Solid;
    Format3.CardStyle.Border.BorderWidth = 2;
    Format3.CardStyle.Border.BorderColor = Color.Olive;
    Format3.ApplyToCard = true;
    Format3.Rule = GridTopBottomRule.TopItems;
    Format3.Threshold = 10;
...
}
See Also