CardViewFormatConditionHighlight.LayoutItemStyle Property
In This Article
Gets the style settings defining the custom conditional formatting applied to layout items.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public CardViewStyleBase LayoutItemStyle { get; }
#Property Value
Type | Description |
---|---|
Card |
A Card |
#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 GridFormatConditionHighlight.Rule property.
#Online Demo
#Example
{
...
CardViewFormatConditionHighlight Format2 = new CardViewFormatConditionHighlight();
Format2.Format = GridConditionHighlightFormat.Custom;
Format2.LayoutItemStyle.BackColor = Color.Pink;
Format2.Rule = GridConditionRule.Expression;
Format2.Expression = "[Quantity] < 50";
Format2.FieldName = "Quantity";
...
}
See Also