Skip to main content

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

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

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public StyleFormatCondition(
    FormatConditionEnum condition,
    object tag,
    AppearanceObject appearance,
    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.

appearance AppearanceObject

A AppearanceObject descendant 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 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 individual cells only. This value is assigned to the StyleFormatCondition.ApplyToRow property.

See Also