MVCxCardViewFormatConditionCollection<CardType>.AddColorScale(Expression<Func<CardType, ValueType>>, GridConditionColorScaleFormat) Method
Creates a new format condition item with the specified settings and adds it to the MVCxCardViewFormatConditionCollection<CardType> collection.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v18.2.dll
Declaration
public CardViewFormatConditionColorScale AddColorScale(
Expression<Func<CardType, ValueType>> fieldNameExpression,
GridConditionColorScaleFormat format
)
Parameters
Name | Type | Description |
---|---|---|
fieldNameExpression | Expression<Func<CardType, ValueType>> | The expression that identifies the data model field. |
format | GridConditionColorScaleFormat | One of the GridConditionColorScaleFormat enumeration values specifying the format (color scale) applied to cells. This value is assigned to the GridFormatConditionColorScale.Format property. |
Returns
Type | Description |
---|---|
CardViewFormatConditionColorScale | A CardViewFormatConditionColorScale object that is the newly created format condition item. |
See Also