Tab

CardViewFormatConditionTopBottom.LayoutItemStyle Property

Gets the style settings defining the custom conditional formatting applied to layout items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public CardViewStyleBase LayoutItemStyle { get; }

Property Value

Type Description
CardViewStyleBase

A CardViewStyleBase object that contains the style settings.

Remarks

When the GridFormatConditionExpressionBase.Format property is set to Custom, use the LayoutItemStyle property to specify the style settings that are applied to a layout item whose value meets the condition specified by the GridFormatConditionTopBottom.Rule property.

Online Demo

Conditional Formatting

Example

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