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

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

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public StyleFormatCondition(
    FormatConditionEnum condition,
    GridColumn column,
    object tag,
    object val1,
    object val2
)
Public Sub New(
    condition As FormatConditionEnum,
    column As GridColumn,
    tag As Object,
    val1 As Object,
    val2 As Object
)

Parameters

Name Type Description
condition FormatConditionEnum

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

column GridColumn

A GridColumn object that represents a column whose values are involved in conditional formatting. This value is assigned to the StyleFormatCondition.Column property.

tag Object

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

val1 Object

An object that is compared to cell values as specified by the condition parameter. This value is assigned to the StyleFormatConditionBase.Value1 property.

val2 Object

An object that is compared to cell values as specified by the condition parameter. This value is assigned to the StyleFormatConditionBase.Value2 property.

See Also