A newer version of this page is available. Switch to the current version.

MVCxCardViewFormatConditionCollection<CardType>.AddHighlight(Expression<Func<CardType, ValueType>>, String, GridConditionHighlightFormat) 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


public CardViewFormatConditionHighlight AddHighlight(
    Expression<Func<CardType, ValueType>> fieldNameExpression,
    string expression,
    GridConditionHighlightFormat format
Public Function AddHighlight(
    fieldNameExpression As Expression(Of Func(Of CardType, ValueType)),
    expression As String,
    format As GridConditionHighlightFormat
) As CardViewFormatConditionHighlight


Name Type Description
fieldNameExpression Expression<Func<CardType, ValueType>>

An expression that identifies the processed data field.

expression String

A String value specifying the expression used to format grid cells.

format GridConditionHighlightFormat

One of the GridConditionHighlightFormat enumeration values specifying the format (highlight) applied to cells.


Type Description

A CardViewFormatConditionHighlight object that is the newly created format condition item.

See Also