A newer version of this page is available. Switch to the current version.

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

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

Namespace: DevExpress.XtraTreeList.StyleFormatConditions

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

public StyleFormatCondition(
    FormatConditionEnum condition,
    object tag,
    AppearanceObject appearance,
    object val1,
    object val2,
    TreeListColumn column,
    bool applyToRow
)
Public Sub New(
    condition As FormatConditionEnum,
    tag As Object,
    appearance As AppearanceObject,
    val1 As Object,
    val2 As Object,
    column As TreeListColumn,
    applyToRow As Boolean
)

Parameters

Name Type Description
condition FormatConditionEnum

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

tag Object

Any object to be associated with the created style condition. 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 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.

column TreeListColumn

A TreeListColumn object that represents the 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 nodes that contain cells matching the defined criteria; false to apply the style to individual cells. This value is assigned to the StyleFormatCondition.ApplyToRow property.

See Also