Back to Devexpress

MVCxCardViewFormatConditionCollection<CardType>.AddTopBottom(Expression<Func<CardType, ValueType>>, GridTopBottomRule, GridConditionHighlightFormat) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxcardviewformatconditioncollection-1-dot-addtopbottom-x28-expression-func-cardtype-valuetype-gridtopbottomrule-gridconditionhighlightformat-x29.md

latest3.0 KB
Original Source

MVCxCardViewFormatConditionCollection<CardType>.AddTopBottom(Expression<Func<CardType, ValueType>>, GridTopBottomRule, 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.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public CardViewFormatConditionTopBottom AddTopBottom(
    Expression<Func<CardType, ValueType>> fieldNameExpression,
    GridTopBottomRule rule,
    GridConditionHighlightFormat format
)
vb
Public Function AddTopBottom(
    fieldNameExpression As Expression(Of Func(Of CardType, ValueType)),
    rule As GridTopBottomRule,
    format As GridConditionHighlightFormat
) As CardViewFormatConditionTopBottom

Parameters

NameTypeDescription
fieldNameExpressionExpression<Func<CardType, ValueType>>

An expression that identifies the processed data field.

| | rule | GridTopBottomRule |

One of the GridTopBottomRule enumeration values specifying the format condition rule.

| | format | GridConditionHighlightFormat |

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

|

Returns

TypeDescription
CardViewFormatConditionTopBottom

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

|

See Also

MVCxCardViewFormatConditionCollection<CardType> Class

MVCxCardViewFormatConditionCollection<CardType> Members

DevExpress.Web.Mvc Namespace