Back to Devexpress

MVCxCardViewFormatConditionCollection.AddColorScale(String, GridConditionColorScaleFormat) Method

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxcardviewformatconditioncollection-dot-addcolorscale-x28-system-dot-string-devexpress-dot-web-dot-gridconditioncolorscaleformat-x29.md

latest2.5 KB
Original Source

MVCxCardViewFormatConditionCollection.AddColorScale(String, GridConditionColorScaleFormat) 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 CardViewFormatConditionColorScale AddColorScale(
    string fieldName,
    GridConditionColorScaleFormat format
)
vb
Public Function AddColorScale(
    fieldName As String,
    format As GridConditionColorScaleFormat
) As CardViewFormatConditionColorScale

Parameters

NameTypeDescription
fieldNameString

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

| | 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

TypeDescription
CardViewFormatConditionColorScale

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

|

See Also

MVCxCardViewFormatConditionCollection Class

MVCxCardViewFormatConditionCollection Members

DevExpress.Web.Mvc Namespace