Skip to main content

StyleFormatCondition(FormatConditionEnum, Object, AppearanceDefault, Object, Object, GridColumn, Boolean) Constructor

Initializes a new instance of the StyleFormatCondition class with the specified settings.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public StyleFormatCondition(
    FormatConditionEnum condition,
    object tag,
    AppearanceDefault appearanceDefault,
    object val1,
    object val2,
    GridColumn column,
    bool applyToRow
)

Parameters

Name Type Description
condition FormatConditionEnum

A FormatConditionEnum enumeration value specifying the type of comparison operation. This value is assigned to the StyleFormatConditionBase.Condition property.

tag Object

An object used to identify the style condition object created. This value is assigned to the StyleFormatConditionBase.Tag property.

appearanceDefault DevExpress.Utils.AppearanceDefault

An DevExpress.Utils.AppearanceDefault object which provides the appearance settings used to paint the cells that meet the specified condition. This value is assigned to the StyleFormatConditionBase.Appearance property.

val1 Object

An object that is compared with the values of the cells identified by the condition parameter. This value is assigned to the StyleFormatConditionBase.Value1 property.

val2 Object

An object that is compared with the values of the cells values identified by the condition parameter. This value is assigned to the StyleFormatConditionBase.Value2 property.

column GridColumn

A GridColumn object (or descendant) which represents a column whose values are involved in conditional formatting. This value is assigned to the StyleFormatCondition.Column property.

applyToRow Boolean

true to apply the specified style to entire rows that contain cells which match the defined criteria; false to apply the style to the individual cells only. This value is assigned to the StyleFormatCondition.ApplyToRow property.

See Also