Back to Devexpress

MVCxCardViewFormatConditionCollection.AddTopBottom(String, GridTopBottomRule, GridConditionHighlightFormat) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxcardviewformatconditioncollection-dot-addtopbottom-x28-system-dot-string-devexpress-dot-web-dot-gridtopbottomrule-devexpress-dot-web-dot-gridconditionhighlightformat-x29.md

latest3.0 KB
Original Source

MVCxCardViewFormatConditionCollection.AddTopBottom(String, GridTopBottomRule, GridConditionHighlightFormat) Method

Creates a new format condition item with the specified settings and adds it to the MVCxCardViewFormatConditionCollection collection.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public CardViewFormatConditionTopBottom AddTopBottom(
    string fieldName,
    GridTopBottomRule rule,
    GridConditionHighlightFormat format
)
vb
Public Function AddTopBottom(
    fieldName As String,
    rule As GridTopBottomRule,
    format As GridConditionHighlightFormat
) As CardViewFormatConditionTopBottom

Parameters

NameTypeDescription
fieldNameString

A String value that is the name of the processed data field. This value is assigned to the GridFormatConditionBase.FieldName property.

| | rule | GridTopBottomRule |

One of the GridTopBottomRule enumeration values specifying the format condition rule. This value is assigned to the GridFormatConditionTopBottom.Rule property.

| | format | GridConditionHighlightFormat |

One of the GridConditionHighlightFormat enumeration values specifying the format (color scale) applied to cells. This value is assigned to the GridFormatConditionExpressionBase.Format property.

|

Returns

TypeDescription
CardViewFormatConditionTopBottom

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

|

See Also

MVCxCardViewFormatConditionCollection Class

MVCxCardViewFormatConditionCollection Members

DevExpress.Web.Mvc Namespace